/* Contact Page Styles - Based on Partners Design */

/* Force RTL direction for contact page content */
.container, .hero-content, .navbar, .navbar-nav, .navbar-collapse, main {
    direction: rtl !important;
}

/* Hide old navigation elements that might be inherited */
.login-web {
    display: none !important;
}

.guest-navbar {
    display: none !important;
}

/* Hero Section */
.hero-section {
    height: 377px;
    min-height: auto;
}

.hero-section h1.page-title {
    color: var(--Text-White, #FFF);
    text-align: right;
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: -0.96px;
}

.hero-breadcrumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.hero-breadcrumb-trail a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.hero-breadcrumb-trail a:hover {
    opacity: 1;
}

.hero-breadcrumb-trail .separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 18px;
    margin: auto 20px;
}

.hero-breadcrumb-trail .current {
    color: var(--text-gold, #f5a623);
    font-weight: 700;
}

.page-title {
    color: var(--Text-White, #FFF);
    text-align: right;
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: -0.96px;
    margin-bottom: 1rem;
    font-family: 'Cairo', 'Alexandria', sans-serif;
}

.hero-breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.logo-section .title-pill {
    margin: 50px auto 20px auto;
}

.logo-section .description {
    color: #999999;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    max-width: 50%;
    margin: 0 auto;
}

.logo-section .logo-section-heading {
    margin-bottom: 15px;
}

.hero-breadcrumb-trail a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.hero-breadcrumb-trail a:hover {
    opacity: 1;
}

.hero-breadcrumb-trail .separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 18px;
    margin: auto 20px;
    display: flex;
    align-items: center;
}

.hero-breadcrumb-trail .current {
    color: var(--text-gold, #f5a623);
    font-weight: 700;
}

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

.contact-card {
    background: white;
    padding: 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Cairo', 'Alexandria', sans-serif;
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(26, 26, 26, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.contact-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.contact-form textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form select.form-control {
    cursor: pointer;
    appearance: none;
    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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding: 0 18px;
}

/* Error Messages */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
    font-size: 12px;
}

/* Submit Button */
.contact-form .btn-submit {
    background: linear-gradient(90deg, var(--Background-Primary, #3E489E) 0%, #161A38 100%);
    border: 1px solid #ffffff33;
    border-radius: 26px;
    padding: 16px 12px;
    font-weight: 500;
    margin: 32px 0;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
}

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

.contact-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Captcha Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-image {
    border-radius: 8px;
    overflow: hidden;
}

.captcha-image img {
    display: block;
    border-radius: 8px;
}

.captcha-input {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section h1.page-title, .hero-breadcrumb-trail {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 60px 0 40px;
    }

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

    .contact-card {
        padding: 30px 20px;
    }

    .contact-header h2 {
        font-size: 1.5rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .contact-form .form-control {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .contact-form .btn-submit {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 25px 15px;
    }

    .hero-breadcrumb-trail {
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.btn-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.btn-submit.loading .spinner {
    display: inline-block;
}

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

/* Contact Methods */
.contact-methods {
    padding: 60px 0 80px;
}

.contact-methods-row {
    display: flex;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-methods-header {
    margin-bottom: 32px;
}

.contact-methods-title {
    font-size: 36px;
    font-weight: 700;
    color: #3e489e;
    margin-bottom: 40px;
    text-align: right;
}

.contact-methods-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

.contact-method-card {
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    position: relative;
    min-height: 230px;
}

.contact-method-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(62, 72, 158, 0.08);
    color: #3e489e;
}

.contact-method-icon.whatsapp-icon {
    background: #e7f6ee;
    color: #25d366;
}

.contact-method-icon.share-icon {
    background: #f3f4ff;
}

.contact-method-label {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #3e489e;
}

.contact-method-description {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 14px;
    text-decoration: none;
    color: #3e489e;
    font-weight: 500;
    font-size: 20px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    direction: ltr;
    text-decoration: none;
}

.contact-method-link:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 24px;
    right: 35px;
}

.contact-social-links a {
    height: auto;
    width: auto;
    max-width: 35px;
    max-height: 35px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-social-links a:hover {
    transform: translateY(-1px);
}

.contact-method-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 26px;
    background: #daddf1;
    color: #3e489e;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: absolute;
    bottom: 24px;
    right: 7%;
    width: 84%;;
}

.contact-method-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.about-mid-section img {
    max-height: 539px;
}

.about-mid-section > span {
    color: #FFF;
    text-align: center;
    font-size: 19.141px;
    font-weight: 700;
    line-height: 23.394px;
    letter-spacing: -0.383px;
    position: absolute;
    left: 100px;
    top: 18.392px;
}

img.our-vision-image {
    /* max-height: 378px; */
        width: 90%;
}

.contact-method-button:active {
    transform: translateY(0);
}

.numbers {
    margin: 0 auto;
}

/* About Page Specific Styles */
.badge-soft-blue {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    width: fit-content;
    max-width: 120px;
    height: 32px;
    background: var(--Pill-Bg);
    border: 0.5px solid var(--accent-indigo);
    border-radius: 8px;
    flex: none;
    order: 0;
    flex-grow: 0;
    color: var(--Text-Dark_Primary);
    font-weight: 500;
    font-size: 12px;
}

.text-dark-blue {
    color: #161A38 !important;
}

.about-section-title, .reviews-section h3 {
    color: var(--Text-Dark_Primary) !important;
    font-weight: 700 !important;
    font-size: 30px;
    margin-bottom: 48px;
    margin-top: 25px;
}

.reviews-section {
    margin-top: 0;
    padding-bottom: 0 !important;
}

.reviews-section h3 {
    margin-bottom: 0;
    color: #2E1650;
}

.about-section-text {
    font-weight: 500;
    font-size: 16px;
    color: var(--Text-Dark_Primary) !important;
    margin-top: 32px;
}

.numbers-container {
    margin-top: 48px;
}

.numbers-container .about-section-title {
    font-size: 36px;
    color: #3e489e !important;
}

.numbers-container .text-info {
    color: #00acc1 !important;
}

.numbers-container p.description {
    color: #3e489e !important;
    font-size: 18px;
    font-weight: 500;
    max-width: 40%;
    margin: 0 auto;
}

/* Stats Section */
.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3e489e;
}

.stats-label {
    font-size: 14px;
    color: #3e489e;
    margin-top: 0.5rem;
}

.btn-dark-blue, .btn-dark-blue:hover {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: var(--Text-Dark_Primary);
    color: #fff;
    font-size: 16px;
}

@media (max-width: 768px) {
    .logo-section .description {
        max-width: 70%;
    }
    .contact-methods {
        padding: 0 0 60px;
    }

    .contact-methods-title {
        font-size: 26px;
        text-align: center;
    }

    .contact-methods-row {
        flex-direction: column;
    }

    .contact-method-card {
        padding: 20px;
        min-height: 230px;
    }

    .contact-social-links {
        justify-content: center;
    }

    img.our-vision-image {
        width: 100%;
    }

    .about-mid-section > span {
        color: #FFF;
        text-align: center;
        font-size: 19.141px;
        font-weight: 700;
        line-height: 23.394px;
        letter-spacing: -0.383px;
        position: absolute;
        left: 25px;
        top: 18.392px;
    }
    .badge-soft-blue {
        margin: 70px auto 38px auto;
    }

    .btn-dark-blue {
        margin: 0 auto;
        display: block;
        width: 113px;
    }

    .numbers-container {
        margin-top: 0;
    }

    .numbers-container .badge-soft-blue {
        margin-top: 0;
    }

    .numbers-container .about-section-title {
        font-size: 24px;
    }

    .numbers-container p.description {
        max-width: 90%;
        font-size: 14px;
    }

    .stats-label::after {
        content: "";
        display: block;
        width: 80px;
        height: 2px;
        background-color: #3e489e;
        margin: 20px auto 0;
    }
    
    .numbers-container .row > div {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .contact-methods-title {
        font-size: 22px;
    }

    .contact-methods-subtitle {
        font-size: 14px;
    }

    .contact-method-icon {
        width: 48px;
        height: 48px;
    }
}