/* Professional Hero Booking Form Styles */

.hero-form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.hero-booking-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

/* Form Header */
.form-header-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    text-align: center;
    position: relative;
}

.form-title-hero {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
}

.form-subtitle-hero {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 15px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-item i {
    font-size: 11px;
}

/* Form Steps */
.form-steps-mini {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0 15px;
    position: relative;
}

.form-steps-mini::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
    color: white;
    transform: scale(1.1);
}

/* Form Body */
.hero-form-body {
    padding: 0 25px 25px;
}

.form-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Groups */
.input-group-hero {
    position: relative;
    margin-bottom: 20px;
}

.form-control-hero {
    width: 100%;
    padding: 12px 15px;
    padding-left: 35px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control-hero:focus {
    outline: none;
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.floating-label-hero {
    position: absolute;
    left: 35px;
    top: 14px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 5px;
}

.floating-label-hero i {
    position: absolute;
    left: -25px;
    top: 0;
    color: #764ba2;
}

.form-control-hero:focus + .floating-label-hero,
.form-control-hero:not(:placeholder-shown) + .floating-label-hero {
    top: -10px;
    left: 30px;
    font-size: 12px;
    color: #764ba2;
    font-weight: 500;
}

select.form-control-hero {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}

.select-label-hero {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.select-label-hero i {
    color: #764ba2;
    margin-right: 5px;
}

/* Travelers Section */
.travelers-quick {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.travelers-label {
    display: block;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Children Ages Section */
.children-ages-section {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.ages-label {
    display: block;
    color: #856404;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.age-select-item {
    display: flex;
    flex-direction: column;
}

.age-select-item label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.age-select-hero {
    width: 100%;
    padding: 8px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-select-hero:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.age-select-hero.error {
    border-color: #dc3545;
    background: #fff5f5;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.travelers-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.traveler-control {
    flex: 1;
    text-align: center;
}

.traveler-control span {
    display: block;
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
}

.counter-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.counter-compact button {
    width: 28px;
    height: 28px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.counter-compact button:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3);
}

.counter-compact span {
    min-width: 30px;
    font-weight: 600;
    color: #333;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-prev-step,
.btn-next-step {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-prev-step {
    background: #f0f0f0;
    color: #666;
}

.btn-prev-step:hover {
    background: #e0e0e0;
}

.btn-next-step {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

/* WhatsApp Opt-in */
.whatsapp-optin-hero {
    margin: 15px 0;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #86efac;
}

.whatsapp-optin-hero label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #166534;
}

.whatsapp-optin-hero input[type="checkbox"] {
    margin-right: 10px;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Submit Button */
.btn-submit-hero {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.25);
}

.btn-submit-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(118, 75, 162, 0.35);
}

.btn-submit-hero i {
    transition: transform 0.3s ease;
}

.btn-submit-hero:hover i {
    transform: translateX(3px);
}

/* Form Footer */
.form-footer-hero {
    text-align: center;
    margin-top: 15px;
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.form-footer-hero i {
    color: #28a745;
}

/* Success Message */
.hero-success-message {
    padding: 40px 25px;
    text-align: center;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #4CAF50;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.hero-success-message h4 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.hero-success-message p {
    color: #666;
    font-size: 14px;
}

/* Error States */
.form-control-hero.error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Toast */
.hero-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Loading Spinner */
.spinner-hero {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 575px) {
    .hero-form-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-booking-form {
        border-radius: 12px;
    }
    
    .form-header-hero {
        padding: 15px 20px;
    }
    
    .form-title-hero {
        font-size: 20px;
    }
    
    .hero-form-body {
        padding: 0 20px 20px;
    }
    
    .form-steps-mini {
        padding: 15px 0 10px;
    }
}

/* Dark overlay for better contrast on hero */
.hero-section .hero-form-wrapper {
    position: relative;
    z-index: 10;
}

/* Ensure form stands out on gradient background */
.hero-booking-form {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}