/* Destinations Page Styles */

/* Hero Banner */
.destinations-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

.destinations-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 91, 143, 0.95) 0%, rgba(212, 165, 116, 0.90) 100%);
    z-index: 1;
}

.destinations-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.destinations-hero .container {
    position: relative;
    z-index: 2;
}

.destinations-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.destinations-hero .hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: white;
}

.destinations-hero .hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
}

/* Search Container */
.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    stroke: #5F6B7A;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 56px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-stats {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.search-stats span {
    font-weight: 700;
    color: #FFD700;
}

/* Countries Section */
.countries-section {
    padding: 60px 0 80px;
    background: #F9FAFB;
}

.countries-layout {
    display: block;
}

/* Countries Grid (Full Width) */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Country Card */
.country-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 35, 64, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(15, 35, 64, 0.15);
}

.country-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.country-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    z-index: 1;
    background: #f0f0f0;
}

.country-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.country-card:hover .country-image img {
    transform: scale(1.1);
}

.country-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: #D4A574;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.country-badge.fast-track {
    background: #1F5B8F;
}

.country-content {
    padding: 20px;
}

.country-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pill {
    padding: 6px 10px;
    background: #F4F6F8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #1F5B8F;
    border: 1px solid #E3E7EB;
}

.country-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.footer-note {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.country-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.country-region {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.country-details {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

.detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 700;
}

.country-apply-btn {
    width: 100%;
    padding: 12px;
    background: #1F5B8F;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.country-apply-btn:hover {
    background: #154169;
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results svg {
    width: 80px;
    height: 80px;
    stroke: #94a3b8;
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.no-results p {
    font-size: 16px;
    color: var(--text-light);
}

/* Lead Form Section */
.lead-form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(31, 91, 143, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
}

.lead-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.form-info h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.form-info p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-benefits svg {
    width: 24px;
    height: 24px;
    stroke: #D4A574;
    flex-shrink: 0;
}

.lead-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 35, 64, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E8DCC8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4A574;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1F5B8F 0%, #154169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 91, 143, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 91, 143, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 35, 64, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #5F6B7A;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #C41E3A;
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.modal-content h2 span {
    color: #D4A574;
}

.modal-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.modal-btn {
    width: 100%;
    padding: 16px;
    background: #1F5B8F;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #154169;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .destinations-hero .hero-title {
        font-size: 48px;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .destinations-hero {
        min-height: 50vh;
        padding: 120px 0 60px;
    }

    .destinations-hero .hero-title {
        font-size: 36px;
    }

    .destinations-hero .hero-subtitle {
        font-size: 16px;
    }

    .search-input {
        padding: 16px 16px 16px 50px;
        font-size: 15px;
    }

    .countries-section {
        padding: 40px 0 60px;
    }

    .countries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .country-flag {
        font-size: 30px;
        width: 46px;
        height: 46px;
        top: 10px;
        left: 10px;
    }

    .country-footer {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20% 16px;
        padding: 32px 24px;
    }

    .modal-content h2 {
        font-size: 28px;
    }
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-card {
    animation: fadeInUp 0.6s ease-out;
}
