/* Validation Error Styles */
.validation-error {
    border: 1.5px solid rgba(220, 53, 69, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
    animation: subtle-pulse 0.5s ease;
}

.validation-error-checkbox {
    outline: 1.5px solid rgba(220, 53, 69, 0.6);
    outline-offset: 5px;
    border-radius: 4px;
    animation: subtle-pulse 0.5s ease;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(245,166,35,0.12) 100%), url('../images/fundal.jpg') center/cover fixed no-repeat;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: rgba(255,255,255,0.18);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(245,166,35,0.18);
    text-align: center;
    color: #333333;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.back-arrow {
    position: absolute;
    left: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 40, 49, 0.08);
    border-radius: 50%;
    color: #222831;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-arrow svg {
    width: 20px;
    height: 20px;
}

.back-arrow:hover {
    background: #222831;
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(34, 40, 49, 0.25);
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    stroke: #333;
    flex-shrink: 0;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.form-section {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 32px 0 rgba(245,166,35,0.18);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255,255,255,0.35);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.13);
    color: #2c2c2e;
    backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 0 4px rgba(245,166,35,0.13);
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.section-title {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(102, 126, 234, 0.2);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    stroke: #667eea;
    flex-shrink: 0;
}

/* Nationality Selector Styles */
.nationality-selector {
    margin: 25px 0 35px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.nationality-options {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nationality-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 16px;
    color: #4a5568;
    user-select: none;
    min-width: 180px;
    justify-content: center;
    min-height: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nationality-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
}

.nationality-option.active {
    color: #2c2c2e;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

/* Tricolor românesc pal pentru Naționalitate Română */
.nationality-option.active[data-nationality="romana"] {
    background: linear-gradient(135deg, 
        rgba(0, 43, 127, 0.25) 0%, 
        rgba(252, 209, 22, 0.35) 50%, 
        rgba(206, 17, 38, 0.25) 100%);
    border: 2px solid rgba(252, 209, 22, 0.4);
}

/* Mov pentru Altă Naționalitate */
.nationality-option.active[data-nationality="alta"] {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.nationality-option:active {
    transform: scale(0.95);
}

.nationality-option .flag {
    font-size: 20px;
    margin-right: 2px;
}

.nationality-option .text {
    font-weight: 600;
}

/* Disabled field styles */
.disabled-field {
    background-color: #e2e8f0 !important;
    color: #718096 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
        background: linear-gradient(45deg, rgba(245,166,35,0.85) 0%, rgba(255,149,0,0.85) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.disabled-field::placeholder {
    color: #9ca3af !important;
}

.disabled-field:hover {
    transform: none !important;
        box-shadow: 0 8px 32px 0 rgba(245,166,35,0.18);
        backdrop-filter: blur(8px);
}

        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(245,166,35,0.25);
        background: linear-gradient(45deg, rgba(245,166,35,0.95) 0%, rgba(255,149,0,0.95) 100%);
    border-color: #cbd5e0 !important;
}

.required-indicator {
    color: #e53e3e;
    font-weight: bold;
}

/* Disabled label styles */
.disabled-label {
    color: #9ca3af !important;
        background: linear-gradient(45deg, rgba(245,166,35,0.13), rgba(255,149,0,0.13));
        color: #2c2c2e;
        border: 2px solid rgba(245,166,35,0.25);

/* Responsive design for nationality selector */
        background: linear-gradient(45deg, rgba(245,166,35,0.09), rgba(255,149,0,0.09));
        color: #c53030;
        border: 2px solid rgba(245,166,35,0.18);
        padding: 20px 15px;
    }
    
    .nationality-options {
        flex-direction: row;
        gap: 12px;
        justify-content: space-between;
    }
    
    .nationality-option {
        flex: 1;
        min-width: 0;
        padding: 15px 8px;
        font-size: 14px;
        min-height: 50px;
        border-radius: 12px;
        border-width: 2px;
        transition: all 0.3s ease;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nationality-option:active {
        transform: scale(0.98);
        background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
        color: white;
    }
    
    .nationality-option .flag {
        font-size: 18px;
        margin-right: 3px;
    }
    
    .nationality-option .text {
        font-weight: 500;
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: 0.2px;
    }
    
    .nationality-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
    }
}

/* Modern Calendar Styles */
.modern-date-picker {
    position: relative;
    margin-bottom: 20px;
}

.date-input-wrapper {
    position: relative;
}

.date-input-field {
    width: 100%;
    padding: 15px 50px 15px 18px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2d3748;
}

.date-input-field:focus,
.date-input-field.active {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

.date-input-field::placeholder {
    color: #a0aec0;
}

.date-input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 20px;
    pointer-events: none;
}

.calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 360px;
    margin: 0 auto;
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.calendar-dropdown.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: #222831;
}

.calendar-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.calendar-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.calendar-month-year {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0;
}

.calendar-weekday {
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
    color: #222831;
    font-size: 12px;
    border-right: 1px solid rgba(102, 126, 234, 0.1);
}

.calendar-weekday:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    min-height: 45px;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #222831;
    transform: scale(1.1);
}

.calendar-day.disabled {
    color: #e2e8f0;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.disabled:hover {
    background: #f8f9fa;
    color: #e2e8f0;
    transform: none;
}

.calendar-day.other-month {
    color: #a0aec0;
    opacity: 0.7;
}

.calendar-day.today {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    font-weight: 600;
    border-radius: 8px;
}

.calendar-day.today:hover {
    background: linear-gradient(45deg, #38a169, #2f855a);
    color: white;
}

.calendar-day.selected {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
}

.calendar-day.selected:hover {
    background: linear-gradient(45deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.calendar-day.range-start,
.calendar-day.range-end {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px;
}

.calendar-day.range-middle {
    background: rgba(102, 126, 234, 0.2);
    color: #222831;
}

.calendar-day.weekend {
    color: #e53e3e;
}

.calendar-day.weekend.disabled {
    color: #fed7d7;
}

/* ✅ Pătrat verde pentru referință check-in în calendarul check-out */
.calendar-day.checkin-reference {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    font-weight: 600;
    border: 2px solid #20c997;
    box-shadow: 0 0 8px rgba(32, 201, 151, 0.4);
    position: relative;
}

/* ✅ X-uri translucide pe zilele blocate */
.calendar-day .blocked-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 400;
    color: #dc3545;
    opacity: 0.4;
    pointer-events: none;
    z-index: 2;
}

.important-notice {
    background: linear-gradient(45deg, rgba(255, 243, 205, 0.9), rgba(255, 234, 167, 0.9));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    margin-top: calc(30px + 10vh);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gdpr-notice {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gdpr-link {
    color: #222831;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gdpr-link:hover {
    color: #222831;
    text-decoration-thickness: 2px;
}

.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gdpr-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gdpr-modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gdpr-modal.show .gdpr-modal-content {
    transform: scale(1);
}

.gdpr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.gdpr-modal-title {
    color: #222831;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.gdpr-close-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gdpr-close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.gdpr-modal-body {
    line-height: 1.6;
    color: #2d3748;
}

.gdpr-modal-body h2 {
    color: #222831;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.gdpr-modal-body h2:first-child {
    margin-top: 0;
}

.gdpr-modal-body p {
    margin-bottom: 15px;
}

.gdpr-modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.gdpr-modal-body li {
    margin-bottom: 8px;
}

.notice-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-icon svg {
    stroke: #667eea;
    width: 28px;
    height: 28px;
}

.notice-text {
    color: #2c2c2e;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.notice-checkbox {
    margin-top: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.checkbox-container input {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: #667eea;
}

.submit-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    stroke: white;
    flex-shrink: 0;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(45deg, #5a6fd8 0%, #6a4190 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: linear-gradient(45deg, #cbd5e0, #a0aec0);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.price-display {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-top: 25px;
}

.price-display h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message {
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.message.success {
    background: linear-gradient(45deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.1));
    color: #2f855a;
    border: 2px solid rgba(72, 187, 120, 0.3);
}

.message.error {
    background: linear-gradient(45deg, rgba(229, 62, 62, 0.1), rgba(197, 48, 48, 0.1));
    color: #c53030;
    border: 2px solid rgba(229, 62, 62, 0.3);
}

/* Hidden date inputs for form submission */
.hidden-date-inputs {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        padding: 25px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .form-section {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 380px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        margin: 0 !important;
        z-index: 10000 !important;
        background: white !important;
        box-shadow: 0 25px 50px rgba(0,0,0,0.25) !important;
    }

    .calendar-dropdown::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        backdrop-filter: blur(5px);
    }

    .calendar-day {
        min-height: 45px;
        font-size: 14px;
    }

    .calendar-header {
        padding: 20px;
    }

    .calendar-month-year {
        font-size: 18px;
    }

    .calendar-weekday {
        padding: 15px 8px;
        font-size: 14px;
    }

    .calendar-nav-btn {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .date-input-field {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Touch interactions for mobile */
@media (hover: none) {
    .calendar-day:hover {
        background: initial;
        color: initial;
        transform: none;
    }

    .calendar-day:active {
        background: rgba(102, 126, 234, 0.2);
        color: #667eea;
    }

    .calendar-day.disabled:active {
        background: #f8f9fa;
        color: #e2e8f0;
    }
}

/* Smooth scrolling and enhanced animations */
html {
    scroll-behavior: smooth;
}

.form-section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}