      
:root {
    --cc-orange: #f47920; /* Kolor pomarańczowy Cinema City */
    --cc-dark: #111111;
    --cc-gray: #1a1a1a;
    --cc-text-gray: #FDFDFD;
    --cc-btn-disabled: #444444;
    --cc-text-disabled: #777777;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cc-dark);
    color: white;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 20px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
        
.logo {
    height: 40px;
    margin: 4px 4px;
}

.hero-section {
    text-align: center;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.text-orange { color: var(--cc-orange); }
.text-white { color: #ffffff; }
.text-promoend { color: #ffffff; font-size: 14px; }

.terms-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0 10px;
}

.terms-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--cc-orange);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-container input[type="checkbox"]:checked {
    background-color: var(--cc-orange);
}

.terms-container input[type="checkbox"]:checked::after {
    content: '✔';
    color: #000;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.terms-label {
    font-size: 13px;
    color: var(--cc-text-gray);
    line-height: 1.5;
    text-align: left;
}

.terms-label a {
    color: var(--cc-text-gray);
    text-decoration: underline;
}
      
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 10px 0;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--cc-orange);
    color: #000;
}

.btn-disabled {
    background-color: var(--cc-btn-disabled);
    color: var(--cc-text-disabled);
    cursor: not-allowed;
}

.voucher-card {
    position: relative; /* Niezbędne do poprawnego pozycjonowania ikonki pobierania */
    background-color: var(--cc-gray);
    border-top: 6px solid var(--cc-orange);
    border-radius: 16px;
    padding: 20px 20px;
    text-align: center;            
}

#download-voucher-btn {
    position: absolute;
    bottom: 25px; /* Przeniesiona na sam dół w prawym rogu */
    right: 20px;
    color: var(--cc-orange);
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
    display: none; /* Domyślnie ukryta, pokażemy z poziomu JS po wygenerowaniu vouchera */
}

#download-voucher-btn:active, 
#download-voucher-btn:hover {
    transform: scale(1.15);
}
           
.voucher-card h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;            
}

.qr-wrapper {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.voucher-code {
    font-size: 24px;
    color: var(--cc-orange);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.voucher-details {
    font-size: 14px;
    color: var(--cc-text-gray);
    margin: 10px 0;
    text-align: center;
}

.voucher-hint {
    font-size: 13px;
    line-height: 15px;
    color: var(--cc-text-gray);
    margin: 10px 0;
    text-align: center;
}
        
.newsletter-section {
            display: none; /* Domyślnie ukryte */
            margin-bottom: 30px;
            margin-top: 20px;
        }
.newsletter-text {
    font-size: 15px;
    color: var(--cc-text-gray);
    text-align: justify;
    margin-bottom: 6px;
    line-height: 1.5;
    padding: 6px 6px;
}


.poster-section {
    margin-top: auto;
    padding-top: 30px;
}

.movie-poster {
    width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
    border: 1px solid #333;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

     
#error-screen {
    display: none;
    padding-top: 100px;
    text-align: center;
}

.hidden { display: none !important; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none; /* Domyślnie ukryte, flex ustawiane przez JS */
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 10px 10px;
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--cc-gray);
    border-top: 6px solid var(--cc-orange);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh; /* Ograniczenie wysokości do 85% ekranu */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-modal-btn {
    color: var(--cc-text-gray);
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    color: var(--cc-orange);
}

.modal-body {
    padding: 20px;
    overflow-y: auto; /* Włącza pionowy scroll, gdy tekst jest za długi */
    font-size: 13px;
    line-height: 1.6;
    color: #ddd;
    text-align: left;
}
