/* Travel Advisor Contact Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #0B1215;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #28489A 0%, #4680F7 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content > *{
    color: white !important;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: rgba(248, 249, 250, 0.8);
    z-index: 1;
}

.features-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 50px 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(40, 72, 154, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(40, 72, 154, 0.08);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(40, 72, 154, 0.18);
}

.feature-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img.feature-icon-image {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    padding: 18px;
    background: linear-gradient(135deg, rgba(40, 72, 154, 0.12) 0%, rgba(70, 128, 247, 0.12) 100%);
    /* box-shadow: 0 10px 24px rgba(40, 72, 154, 0.12); */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-item:hover .feature-icon img.feature-icon-image {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(40, 72, 154, 0.18) 0%, rgba(70, 128, 247, 0.18) 100%);
    /* box-shadow: 0 14px 32px rgba(40, 72, 154, 0.18); */
}

.feature-title {
    font-size: 2.4rem;
    color: #28489A;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.25;
}

.feature-description {
    font-size: 1.6rem;
    color: #556273;
    line-height: 1.6;
    font-weight: 400;
    max-width: 220px;
    margin: 0 auto;
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.form-intro h2 {
    font-size: 3rem;
    color: #28489A;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-intro p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.7;
}

/* Form Styles */
.travel-form {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.form-section-header {
    margin: 40px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #28489A;
}

.form-section-header:first-child {
    margin-top: 0;
}

.form-section-header h3 {
    font-size: 2rem;
    color: #28489A;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-header i {
    font-size: 2rem;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0B1215;
    margin-bottom: 8px;
}

.required {
    color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

/* Special styling for phone field to prevent formatting */
.form-group #phone {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #28489A;
    box-shadow: 0 0 0 3px rgba(40, 72, 154, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    transition: color 0.2s ease;
    position: relative;
}

.checkbox-label:hover {
    color: #28489A;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    opacity: 0;
    position: absolute;
    z-index: 1;
}

.checkbox-label span {
    font-size: 1.4rem;
    color: #0B1215;
    padding-left: 32px;
    position: relative;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-label span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.checkbox-label:hover span::before {
    border-color: #28489A;
}

.checkbox-label input[type="checkbox"]:checked + span::before {
    background: #28489A;
    border-color: #28489A;
}

.checkbox-label input[type="checkbox"]:checked + span::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Error Messages */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 1.2rem;
    margin-top: 5px;
    min-height: 18px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc3545;
}

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown .field {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.searchable-dropdown .field:focus {
    outline: none;
    border-color: #28489A;
    box-shadow: 0 0 0 3px rgba(40, 72, 154, 0.1);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.clear-btn:hover {
    color: #28489A;
}

.dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.no-results {
    color: #666;
    cursor: default;
}

.dropdown-item.no-results:hover {
    background-color: transparent;
}

.flag-icon {
    font-size: 1.2rem;
    min-width: 20px;
}

.country-name {
    flex: 1;
    font-weight: 500;
}

.phone-code {
    color: #666;
    font-size: 1.3rem;
}

.state-name, .city-name {
    flex: 1;
    font-weight: 500;
}

/* reCAPTCHA Container */
.recaptcha-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

/* Submit Button */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #28489A 0%, #4680F7 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(40, 72, 154, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    font-size: 1.6rem;
}

/* Form Messages */
.form-message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    display: block;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .form-intro h2 {
        font-size: 2.5rem !important;
    }

    .form-intro p {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 1000px;
    }

    .feature-item {
        padding: 40px 30px;
        min-height: 250px;
    }

    .feature-icon i {
        font-size: 3rem;
        width: 70px;
        height: 70px;
    }

    .feature-title {
        font-size: 2rem;
    }

    .feature-description {
        font-size: 1.4rem;
        max-width: 180px;
    }

    .travel-form {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-section-header h3 {
        font-size: 1.8rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 600px;
    }

    .feature-item {
        padding: 35px 25px;
        min-height: 220px;
    }

    .feature-icon i {
        font-size: 2.8rem;
        width: 65px;
        height: 65px;
    }

    .feature-title {
        font-size: 1.8rem;
    }

    .feature-description {
        font-size: 1.3rem;
        max-width: 250px;
    }

    .container {
        padding: 0 15px;
    }

    .travel-form {
        padding: 25px 15px;
    }

    .form-section-header h3 {
        font-size: 1.6rem;
    }

    .form-group label {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1.4rem;
        padding: 10px 12px;
    }

    .checkbox-label span {
        font-size: 1.3rem;
    }
}

/* Custom Select Arrow */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #28489A;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .hero-section,
    .submit-btn {
        display: none;
    }

    .travel-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}