/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Hero Section */
.contact-hero {
    min-height: calc(100vh - 80px);
    padding: var(--spacing-16) 0 var(--spacing-8);
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(40, 56, 146, 0.03) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.contact-hero > .container {
    width: 100%;
    padding-left: 8.4375rem; /* 135px as per Figma */
    padding-right: 8.4375rem;
}

@media (max-width: 1280px) {
    .contact-hero > .container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero > .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .contact-hero {
        padding: var(--spacing-8) 0;
    }
}

/* Breadcrumb */
.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-8);
    font-size: var(--font-size-sm);
}

.contact-breadcrumb a {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.contact-breadcrumb a:hover {
    color: var(--color-secondary);
}

.contact-breadcrumb .separator {
    color: #9CA3AF;
}

.contact-breadcrumb .current {
    color: var(--color-text-dark);
    font-weight: 500;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .contact-info {
        padding-top: 0;
    }

    .contact-form-wrapper {
        margin-top: 0;
    }
}

/* Contact Info Column */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    padding-top: var(--spacing-8);
}

.contact-title {
    font-family: 'Onest', sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: #041A31;
    margin-bottom: var(--spacing-2);
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 36px;
    }
}

.contact-description {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: #666666;
    max-width: 480px;
}

/* Email Card - Glass Effect */
.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-5, 1.25rem);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
    max-width: 420px;
}

/* Glass border for contact card */
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(200, 210, 230, 0.4) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.email-card {
    border: none;
    margin-top: var(--spacing-4);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 56, 146, 0.08);
    border-radius: 20px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-email {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #041A31;
    transition: color var(--transition-fast);
}

.card-email:hover {
    color: var(--color-primary);
}

/* Staff Cards - Glass Effect */
.staff-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3);
    padding-left: var(--spacing-2);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-base);
    max-width: 420px;
}

/* Glass border for staff card */
.staff-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(200, 210, 230, 0.4) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.staff-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-name {
    font-family: 'Onest', sans-serif;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #041A31;
}

.staff-email a,
.staff-phone a {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.staff-email a:hover,
.staff-phone a:hover {
    color: var(--color-primary);
}

.staff-phone {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* Contact Form - Glass Effect */
.contact-form-wrapper {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.9) 50%,
        rgba(255, 255, 255, 0.92) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: var(--spacing-8);
    margin-top: var(--spacing-8);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.03);
}

/* Glass border for form wrapper */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(200, 210, 230, 0.3) 40%,
        rgba(180, 195, 220, 0.2) 60%,
        rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.form-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: #041A31;
}

.form-group label span[aria-hidden="true"] {
    color: #EF4444;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: var(--font-size-sm);
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #041A31;
    transition: all var(--transition-fast);
}

/* Error/validation state - orange text */
.form-group input.error,
.form-group input:invalid:not(:placeholder-shown) {
    color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 160, 27, 0.15);
}

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

/* Phone Input */
.phone-input {
    display: flex;
    gap: var(--spacing-2);
}

.country-select {
    width: 90px;
    flex-shrink: 0;
    padding: 12px 28px 12px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: var(--font-size-sm);
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' 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") no-repeat right 12px center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom dropdown arrow for all selects */
.form-group select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' 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 16px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.phone-input input {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    margin-top: var(--spacing-1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-secondary);
    flex-shrink: 0;
}

.checkbox-text {
    color: var(--color-text-light);
}

.checkbox-text a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--color-primary);
}

/* Submit Button Wrapper */
.submit-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-2);
}

/* Submit Button */
.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 215px;
    height: 52px;
    padding: 14px 67px 10px 66px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.00);
    mix-blend-mode: plus-darker;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    color: var(--color-primary);
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.8;
    transform: translateY(-2px);
}

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

.submit-btn[aria-busy="true"],
.submit-btn:disabled {
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Dot Pattern Background */
.dot-pattern {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 700px;
    background-image: radial-gradient(circle, #E5E7EB 3px, transparent 3px);
    background-size: 58px 58px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   LOCATIONS SECTION
   ======================================== */

.locations-section {
    height: 679px;
    padding: 0;
    background: url('../assets/contact/background.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Dark overlay - no dots */
.locations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 26, 49, 0.5);
    pointer-events: none;
}

.locations-section > .container {
    width: 100%;
    max-width: none;
    padding: 0 361px;
    position: relative;
    z-index: 1;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 370px);
    gap: 44px;
    justify-content: center;
}

@media (max-width: 1400px) {
    .locations-section > .container {
        padding: 0 3rem;
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-6);
    }
}

@media (max-width: 1024px) {
    .locations-section {
        height: auto;
        padding: var(--spacing-16) 0;
    }

    .locations-section > .container {
        padding: 0 1.5rem;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* Location Card */
.location-card {
    width: 370px;
    height: 510px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.location-map {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-4);
}

.map-illustration,
.map-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 1400px) {
    .location-card {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .location-card {
        min-height: auto;
    }
}

.map-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.location-info {
    padding: var(--spacing-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-name {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FFFFFF;
    margin-bottom: var(--spacing-1);
}

.location-company {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #FFFFFF;
    margin-bottom: var(--spacing-3);
}

.location-address {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: #FFFFFF;
    margin-bottom: var(--spacing-4);
    flex: 1;
}

.location-link {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: #FFFFFF;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    transition: opacity var(--transition-fast);
}

.location-link:hover {
    opacity: 0.8;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */

.partners-section {
    padding: var(--spacing-16) 0;
    background: var(--color-bg-offwhite);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #E5E7EB 3px, transparent 3px);
    background-size: 58px 58px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.partners-section > .container {
    position: relative;
    z-index: 1;
}

.partners-section .section-header.text-center {
    padding-top: 91px;
    margin-bottom: 82px;
}

.partners-section .section-header.text-center .section-title {
    color: #041A31;
    text-align: center;
    font-family: 'Onest', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 105%;
}

@media (max-width: 768px) {
    .partners-section .section-header.text-center .section-title {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .partners-section .section-header.text-center .section-title {
        font-size: 32px;
    }
}

.partners-title {
    font-family: 'Onest', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 105%;
    color: #041A31;
    text-align: center;
    margin-bottom: var(--spacing-12);
}

.partners-title-italic {
    font-family: 'Onest', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 105%;
    color: #041A31;
    text-align: center;
}

@media (max-width: 768px) {
    .partners-title {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .partners-title {
        font-size: 32px;
    }
}

/* Partners Slider */
.partners-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partners-track {
    display: flex;
    gap: var(--spacing-8);
    animation: partnersSlide 12s linear infinite;
    width: max-content;
}

.partners-slider:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partnersSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4);
    background: transparent;
    transition: transform var(--transition-base);
    min-height: 80px;
    flex-shrink: 0;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #9CA3AF;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-logo img {
    width: 200px;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.submit-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
    .contact-hero {
        min-height: auto;
        padding: var(--spacing-12) 0;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: var(--spacing-8) 0;
    }

    .contact-form-wrapper {
        padding: var(--spacing-4);
    }

    .contact-card {
        padding: var(--spacing-3);
    }

    .staff-photo {
        width: 52px;
        height: 52px;
    }
}
