/* Estilos específicos para Contact - extraídos de contact_mock.html */

/* Estilos adicionales para cuando no se muestran las tarjetas */
.no-cards-margin {
    margin-top: 100px;
}

body {
    background-color: #f7faff;
}

/* Hero Banner */
.hero-banner {
    margin-top: 145px;
    background-image: url(../../public/contact-us/banner-contact-us.png);
    background-size: cover;
    background-position: bottom;
    color: white;
    padding: 80px 0;
    height: 438px;
    text-align: center;
    position: relative;
}

.hero-banner .container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 70px;
    color: #e8effc;
    font-weight: 400;
    margin: 0;
}

.hero-banner p {
    font-family: 'proxima-nova-condensed', sans-serif;
    color: #edf3fd;
    font-size: 17px;
    max-width: 600px;
    font-weight: 100;
    margin: 41px auto;
}

/* Contact Cards (commented out in original but keeping styles) */
.contact-cards {
    background-color: #f7faff;
    position: relative;
    width: 100%;
    height: 100px;
}

.contact-cards .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: absolute;
    top: -114%;
    left: 0;
    right: 0;
}

.card {
    background-color: #002266;
    border-radius: 20px;
    width: 374px;
    height: fit-content;
    padding-bottom: 25px;
    position: relative;
    color: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.mexico {
    background-color: #e8effc;
}

.mexico h3 {
    color: #002266 !important;
}

.mexico p {
    color: #7b88a3 !important;
}

.careers {
    background-color: white;
}

.careers h3 {
    color: #002266 !important;
}

.careers p {
    color: #7b88a3 !important;
}


.card-image {
    padding: 43px 0 0 30px;
}

.card-image img {
    width: 195px;
    height: 96px;
    border-radius: 63px;
    object-fit: cover;
}

.card h3 {
    font-family: 'neue-haas-unica', sans-serif;
    padding: 20px 30px 10px;
    color: #ffffff;
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.68px;
    font-weight: 400;
}

.card-content {
    display: flex;
    padding: 0px 25px;
    flex-direction: column;
}

.card-content p {
    font-family: 'neue-haas-unica', sans-serif;
    color: #e8effc;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0px;
    opacity: 0.9;
    margin-bottom: 16px;
    font-weight: lighter;
}

.btn-circle {
    width: 38px;
    height: 38px;
    background-color: #0044a6;
    border-radius: 50%;
    transform: rotate(90deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002266;
    text-decoration: none;
}

.btn-circle img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 20px;
    background-color: #f7faff;
}

.contact-form-section .container {
    margin: 0 auto;
}

.contact-form-container {
    display: flex;
    justify-content: space-evenly;
}

.contact-info {
    flex: 1;
    max-width: 30%;
}

.contact-info h2 {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 36px;
    max-width: 495px;
    font-weight: 400;
    color: #002266;
    margin-bottom: 45px;
}

.info-block p {
    color: #7b88a3;
    font-size: 16px;
    font-weight: lighter;
    line-height: 22px;
}

.contact-form {
    flex: 1;
    background-color: #e8effc;
    padding: 80px;
    padding-bottom: 55px;
    border-radius: 12px;
    max-width: 32%;
}

.contact-input-container {
    margin-bottom: 24px;
}

.contact-input-container label {
    display: block;
    color: #7b88a3;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: lighter;
}

.contact-input-container input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #002266;
    background-color: transparent;
    font-size: 16px;
    outline: none;
}

.contact-input-container input:focus {
    outline: none;
    border-bottom-color: #0044A6;
}

.select-container {
    margin-bottom: 24px;
}

.select-container select {
    width: 100%;
    padding: 15px 40px 15px 20px;
    border-radius: 12px;
    border: 1px solid #002266;
    background-color: transparent;
    font-size: 16px;
    font-weight: lighter;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: #002266;
    text-align: center;
}

.select-container select:focus {
    outline: none;
    border-bottom-color: #0044A6;
}

.checkbox-group {
    margin-top: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-container {
    position: relative;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #0044A6;
    border-radius: 3px;
    background-color: white;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #0044A6;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group span {
    font-family: 'proxima-nova-condensed', sans-serif;
    font-size: 14px;
    color: #6C778E;
    line-height: 1.4;
}

.submit-button {
    background-color: #0044A6;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #002266;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 68, 166, 0.3);
}

.divider {
    height: 2px;
    background-color: rgba(150, 177, 227, 0.13);
    width: 80%;
    margin: auto;
    margin-top: 200px;
}

/* National Offices Section */
.national-offices {
    padding: 0px 20px;
    background-color: #f7faff;
}

.national-offices .container {
    max-width: 1200px;
    margin: 0 auto;
}

.national-offices-title {
    font-family: 'neue-haas-unica', sans-serif;
    text-align: center;
    font-size: 38px;
    font-weight: 400;
    color: #012d74;
    margin-bottom: 30px;
}

.national-offices-subtitle {
    font-family: 'proxima-nova-condensed', sans-serif;
    text-align: center;
    max-width: 615px;
    margin: 0 auto;
    font-weight: lighter;
    color: #7b88a3;
    padding-left: 30px;
    margin-bottom: 40px;
    opacity: 0.65;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    align-items: start;
    grid-auto-rows: min-content;
}

.office-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: fit-content;
    align-self: start;
}

.office-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.office-card.expanded {
    grid-row: span 1;
    z-index: 10;
    transform: scale(1.02);
}

.office-header {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.3s ease;
}

.office-header:hover {
    background-color: #f7faff;
}

.office-header .country {
    font-family: 'proxima-nova-condensed', sans-serif;
    font-size: 14px;
    color: #012d74;
    font-weight: lighter;
    display: block;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.office-header h3 {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #002266;
    margin: 5px 0 0 0;
}

.btn-expand {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.office-card.expanded .btn-expand {
    transform: rotate(180deg);
}

.btn-expand img {
    width: 51px;
    height: 50px;
}

.office-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.office-card.expanded .office-details {
    max-height: 1000px;
    opacity: 1;
}

.office-details .divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: auto;
}

.address-info,
.contact-details,
.manager-info {
    padding: 20px 30px;
}

.address-info .address {
    font-family: 'proxima-nova-condensed', sans-serif;
    color: #002266;
    font-size: 16px;
    font-weight: lighter;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    white-space: pre-line;
}

.address-info .address br {
    margin-bottom: 4px;
}

.contact-details p {
    font-family: 'proxima-nova-condensed', sans-serif;
    color: #002266;
    font-size: 16px;
    font-weight: lighter;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.manager-icon {
    width: 49px;
    height: 49px;
    background-color: #0044a6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manager-details .manager-name {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 20px;
    margin: 0;
    font-weight: 500;
    color: black;
    text-align: left;
}

.manager-details .manager-position {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 20px;
    margin: 0;
    font-weight: 100;
    color: black;
    margin: 0 0 5px 0;
    text-align: left;
}

.manager-details .manager-email {
    font-family: 'proxima-nova-condensed', sans-serif;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 20px;
    color: #0044a6;
    font-weight: lighter;
    text-align: left;
}

.map {
    padding: 20px 30px;
}

.map iframe {
    width: 100%;
    border-radius: 8px;
}

/* International Offices Section */
.international-offices {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.international-offices .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.international-offices h2 {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 42px;
    font-weight: 500;
    color: #002266;
    text-align: center;
    margin-bottom: 60px;
}

.world-map {
    justify-self: center;
    width: 758px;
    height: 332px;
    background-image: url(../../public/contact-us/world-map-contact-us.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
    position: relative;
}

.country-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    height: 100%;
    align-content: center;
    justify-self: center;
    column-gap: 46px;
    row-gap: 6px;
}

.country-button {
    width: 147px;
    height: 47px;
    background-color: white;
    align-items: center;
    border-radius: 24px;
    display: flex;
    gap: 10px;
    padding-left: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.country-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.country-flag {
    width: 21px;
    height: 21px;
    object-fit: cover;
    border-radius: 50%;
}

.country-button p {
    font-family: 'neue-haas-unica', sans-serif;
    font-size: 17px;
    color: #002266;
    font-weight: 400;
    margin: 0;
}

.job-application {
    width: 98%;
    margin: 0 auto;
    margin-top: 125px;
    margin-bottom: 35px;
    border-radius: 22px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .no-cards-margin {
        margin-top: 60px;
    }
    
    .hero-banner h1 {
        font-size: 42px;
    }
    
    .hero-banner p {
        font-size: 18px;
    }
    
    .contact-form-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 32px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .national-offices h2,
    .international-offices h2 {
        font-size: 32px;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .office-header {
        padding: 20px;
    }
    
    .address-info,
    .contact-details,
    .manager-info,
    .map {
        padding: 15px 20px;
    }
    
    .office-card.expanded {
        transform: none;
    }
    
    
    .world-map {
        width: 100%;
        height: auto;
        min-height: 400px;
        background-size: contain;
    }
    
    .country-buttons-container {
        padding-top: 100px;
    }

    .country-button {
        width: 120px;
        height: 40px;
        gap: 8px;
    }
    
    .country-flag {
        width: 18px;
        height: 18px;
    }
    
        .country-button p {
            font-size: 12px;
        }
}

@media (max-width: 576px) {
    .no-cards-margin {
        margin-top: 40px;
    }
    
    .hero-banner {
        padding: 80px 20px 60px;
    }
    
    .hero-banner h1 {
        font-size: 32px;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map iframe {
        height: 200px;
    }
    
    .office-card.expanded {
        transform: none;
    }
    
    .world-map {
        width: 100%;
        height: auto;
        min-height: 350px;
        background-size: contain;
    }

    .country-buttons-container {
        padding-top: 100px;
        column-gap: 20px;
    }
    .country-button {
        width: 100px;
        height: 35px;
        gap: 6px;
    }
    
    .country-flag {
        width: 16px;
        height: 16px;
    }
    
    .country-button p {
        font-size: 11px;
    }
}
