/* Contact Page Styles */

.contact-page {
    padding: 0 0 3rem;
    color: #4a5568;
    font-family: var(--body-font, 'Inter', sans-serif);
}

/* Hero section with background image */
.contact-hero {
    position: relative;
    padding: 5rem 0;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-hero::before {
    display: none;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contact-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color, #2ecc71);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--primary-color, #2ecc71);
}

/* Contact main section */
.contact-main {
    margin-bottom: 4rem;
}

.contact-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.contact-info-section {
    flex: 1 1 350px;
    background: linear-gradient(135deg, #124429 0%, #1b683f 100%);
    padding: 3rem 2rem;
    color: #fff;
    position: relative;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.contact-info-content {
    position: relative;
    z-index: 2;
}

.contact-info-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: #fff !important;
}

.contact-info-section h3,
.contact-info-content h3 {
    color: #fff !important;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color, #2ecc71);
}

.contact-info-intro {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-info-list {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    flex-shrink: 0;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #2ecc71);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background-color: var(--primary-color, #2ecc71);
    color: #fff;
    transform: scale(1.1);
}

.contact-info-content h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.contact-info-content p, 
.contact-info-content a {
    margin: 0;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    font-size: 0.95rem;
}

.contact-info-content a:hover {
    color: var(--primary-color, #2ecc71);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color, #2ecc71);
    transform: translateY(-3px);
}

/* Form section */
.contact-form-section {
    flex: 1 1 500px;
    padding: 3rem;
}

.contact-form-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #2d3748;
    position: relative;
    display: inline-block;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color, #2ecc71);
}

.contact-form-intro {
    margin-bottom: 2rem;
    color: #718096;
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #f8fafc;
    color: #4a5568;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2ecc71);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
    background-color: #fff;
}

.form-control.error {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-group .required {
    color: #e53e3e;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color, #2ecc71);
    color: #fff;
}

.btn-primary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

/* Form success message */
.form-success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
}

.success-icon svg {
    color: var(--primary-color, #2ecc71);
    stroke-width: 1.5;
}

.form-success-message h2 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.form-success-message p {
    color: #718096;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Map section */
.map-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* International and education sections */
.international-section,
.education-section {
    padding: 4rem 0;
    background-color: #f8fafc;
    position: relative;
}

.international-section {
    margin-bottom: 0;
    padding-bottom: 6rem;
}

.education-section {
    padding-top: 6rem;
}

.section-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    bottom: 0;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
    transform: rotateY(180deg);
}

.section-divider .shape-fill {
    fill: #FFFFFF;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1 1 300px;
    max-width: 350px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: #2d3748;
    font-weight: 600;
}

.card-details {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

.card p {
    margin: 0 0 0.5rem;
}

.card .region {
    color: #4a5568;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.card a {
    color: var(--primary-color, #2ecc71);
    text-decoration: none;
    transition: color 0.2s;
}

.card a:hover {
    color: #27ae60;
    text-decoration: underline;
}

.education-image {
    height: 200px;
    overflow: hidden;
}

.education-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .education-image img {
    transform: scale(1.1);
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-color, #2ecc71);
    border-radius: 6px;
    color: var(--primary-color, #2ecc71);
    background-color: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color, #2ecc71);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

/* FAQ section */
.faq-section {
    padding: 4rem 0;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-item.active {
    border-color: var(--primary-color, #2ecc71);
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    transition: background-color 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: rgba(46, 204, 113, 0.1);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.faq-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color, #2ecc71);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #718096;
}

.faq-answer a {
    color: var(--primary-color, #2ecc71);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .contact-info-section {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 4rem 0;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .map-container {
        height: 300px;
    }
}
