/* ================================================
   CONTACT US PAGE STYLES
   Diseño moderno y coherente con el sitio
   ================================================ */

/* Header adjustments */
header,
header .header {
    max-height: 70px !important;
}

header .header_text__info {
    display: none;
}

/* ================================================
   BANNER SECTION
   ================================================ */
.contact-banner {
    background: linear-gradient(135deg, var(--color1) 0%, #002855 100%);
    width: 100%;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.contact-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(64, 190, 234, 0.1);
    transform: rotate(-15deg);
    border-radius: 50%;
}

.contact-banner__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-banner__icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-banner__icon .material-icons {
    font-size: 40px;
    color: var(--color3);
}

.contact-banner__content h1 {
    color: var(--color2);
    font-family: raleway-bold;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.contact-banner__content p {
    color: var(--color3);
    font-family: raleway-regular;
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
}

/* ================================================
   CONTACT INFO CARDS
   ================================================ */
.contact-info {
    background-color: #f8f9fa;
    padding: 50px 20px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.contact-info__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-info__card {
    background: var(--color2);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.contact-info__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--color3);
}

.contact-info__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color3) 0%, #2ba8d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.contact-info__icon .material-icons {
    font-size: 28px;
    color: var(--color2);
}

.contact-info__card h3 {
    font-family: raleway-bold;
    font-size: 18px;
    color: var(--color1);
    margin-bottom: 12px;
}

.contact-info__card p {
    font-family: raleway-regular;
    font-size: 14px;
    color: var(--color5);
    line-height: 1.6;
    margin: 4px 0;
}

.contact-info__card a {
    color: var(--color3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info__card a:hover {
    color: var(--color1);
    text-decoration: underline;
}

/* ================================================
   MAIN CONTACT SECTION
   ================================================ */
.contact-main {
    padding: 60px 20px;
    background: var(--color2);
}

.contact-main__container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Info Column */
.contact-main__info {
    order: 2;
}

.contact-main__info h2 {
    font-family: raleway-bold;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color1);
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-main__intro {
    font-family: raleway-regular;
    font-size: 16px;
    color: var(--color5);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Features List */
.contact-main__features {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-main__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-main__feature:hover {
    background: var(--color3_opacity);
    transform: translateX(5px);
}

.contact-main__feature .material-icons {
    font-size: 22px;
    color: var(--color3);
}

.contact-main__feature span:last-child {
    font-family: raleway-medium;
    font-size: 14px;
    color: var(--color1);
}

/* Data Protection Notice */
.contact-main__notice {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--color3);
}

.contact-main__notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-main__notice-header .material-icons {
    font-size: 24px;
    color: var(--color3);
}

.contact-main__notice-header h4 {
    font-family: raleway-bold;
    font-size: 16px;
    color: var(--color1);
    margin: 0;
}

.contact-main__notice p {
    font-family: raleway-regular;
    font-size: 12px;
    color: var(--color5);
    line-height: 1.6;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.contact-main__notice p::-webkit-scrollbar {
    width: 4px;
}

.contact-main__notice p::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 2px;
}

.contact-main__notice p::-webkit-scrollbar-thumb {
    background: var(--color3);
    border-radius: 2px;
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-main__form-wrapper {
    order: 1;
}

.contact-form {
    background: var(--color2);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.contact-form__header {
    background: linear-gradient(135deg, var(--color1) 0%, #002855 100%);
    padding: 25px 30px;
    text-align: center;
}

.contact-form__header h3 {
    font-family: raleway-bold;
    font-size: 22px;
    color: var(--color2);
    margin-bottom: 8px;
}

.contact-form__header p {
    font-family: raleway-regular;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form__body {
    padding: 30px;
}

.contact-form__row {
    margin-bottom: 20px;
}

.contact-form__row #contact-captcha-container {
    display: flex;
    justify-content: center;
}

.contact-form__row--half {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-form__group {
    position: relative;
}

.contact-form__group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: raleway-semibold;
    font-size: 14px;
    color: var(--color1);
    margin-bottom: 8px;
}

.contact-form__group label .material-icons {
    font-size: 18px;
    color: var(--color3);
}

.contact-form__group input[type="text"],
.contact-form__group input[type="email"],
.contact-form__group input[type="tel"],
.contact-form__group select,
.contact-form__group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: raleway-regular;
    font-size: 15px;
    color: var(--color5);
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus {
    outline: none;
    border-color: var(--color3);
    background-color: var(--color2);
    box-shadow: 0 0 0 4px rgba(64, 190, 234, 0.15);
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
    color: #999;
}

.contact-form__group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23414141'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.contact-form__group textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
}

/* Checkbox */
.contact-form__group--checkbox {
    margin-top: 10px;
}

.contact-form__checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: raleway-regular !important;
    font-size: 13px !important;
    color: var(--color5) !important;
    line-height: 1.5;
}

.contact-form__checkbox-label input[type="checkbox"] {
    display: none;
}

.contact-form__checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-form__checkbox-label input[type="checkbox"]:checked + .contact-form__checkbox-custom {
    background-color: var(--color3);
    border-color: var(--color3);
}

.contact-form__checkbox-label input[type="checkbox"]:checked + .contact-form__checkbox-custom::after {
    content: "\2713";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.contact-form__checkbox-label a {
    color: var(--color3);
    text-decoration: none;
    font-weight: 600;
}

.contact-form__checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.contact-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--color3) 0%, #2ba8d4 100%);
    border: none;
    border-radius: 12px;
    font-family: raleway-bold;
    font-size: 16px;
    color: var(--color2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 190, 234, 0.3);
}

.contact-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 190, 234, 0.4);
}

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

.contact-form__submit .material-icons {
    font-size: 20px;
}

/* ================================================
   DISABLED NOTICE (Inline Message)
   ================================================ */
.contact-form__notice {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-form__notice-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color6) 0%, #d46605 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Success Notice */
.contact-form__notice--success .contact-form__notice-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Error Notice */
.contact-form__notice--error .contact-form__notice-icon {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

.contact-form__notice-icon .material-icons {
    font-size: 36px;
    color: var(--color2);
}

.contact-form__notice-content h4 {
    font-family: raleway-bold;
    font-size: 20px;
    color: var(--color1);
    margin-bottom: 15px;
}

.contact-form__notice-content p {
    font-family: raleway-regular;
    font-size: 14px;
    color: var(--color5);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-form__notice-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.contact-form__notice-content ul li {
    font-family: raleway-regular;
    font-size: 14px;
    color: var(--color5);
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.contact-form__notice-content ul li:last-child {
    border-bottom: none;
}

.contact-form__notice-content ul li a {
    color: var(--color3);
    text-decoration: none;
    font-weight: 600;
}

.contact-form__notice-content ul li a:hover {
    text-decoration: underline;
}

.contact-form__notice-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-form__notice-close:hover {
    background: #e0e0e0;
}

.contact-form__notice-close .material-icons {
    font-size: 20px;
    color: var(--color5);
}

/* ================================================
   RESPONSIVE - TABLET (768px+)
   ================================================ */
@media (min-width: 768px) {
    .contact-info__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-main__container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: start;
    }

    .contact-main__info {
        order: 1;
    }

    .contact-main__form-wrapper {
        order: 2;
        position: sticky;
        top: 90px;
    }

    .contact-form__row--half {
        grid-template-columns: 1fr 1fr;
    }

    .contact-main__features {
        grid-template-columns: 1fr 1fr;
    }

    .contact-banner {
        min-height: 35vh;
    }
}

/* ================================================
   RESPONSIVE - DESKTOP (1200px+)
   ================================================ */
@media (min-width: 1200px) {
    .contact-main {
        padding: 80px 40px;
    }

    .contact-main__container {
        gap: 80px;
    }

    .contact-form__body {
        padding: 40px;
    }

    .contact-banner__icon {
        width: 100px;
        height: 100px;
    }

    .contact-banner__icon .material-icons {
        font-size: 50px;
    }

    .contact-info__card {
        padding: 40px 30px;
    }

    .contact-main__notice p {
        font-size: 13px;
        max-height: 200px;
    }
}

/* ================================================
   RESPONSIVE - LARGE DESKTOP (1920px+)
   ================================================ */
@media (min-width: 1920px) {
    .contact-main__container {
        max-width: 1500px;
    }

    .contact-info__container {
        max-width: 1400px;
    }
}

/* ================================================
   RESPONSIVE - MOBILE SMALL (480px-)
   ================================================ */
@media (max-width: 480px) {
    .contact-banner {
        min-height: 25vh;
        padding: 30px 15px;
    }

    .contact-banner__icon {
        width: 60px;
        height: 60px;
    }

    .contact-banner__icon .material-icons {
        font-size: 30px;
    }

    .contact-info {
        padding: 40px 15px;
    }

    .contact-info__card {
        padding: 25px 20px;
    }

    .contact-main {
        padding: 40px 15px;
    }

    .contact-form__header {
        padding: 20px;
    }

    .contact-form__header h3 {
        font-size: 18px;
    }

    .contact-form__body {
        padding: 20px;
    }

    .contact-form__group input,
    .contact-form__group select,
    .contact-form__group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .contact-form__submit {
        padding: 14px 20px;
        font-size: 14px;
    }

    .contact-main__notice {
        padding: 15px;
    }

    .contact-main__notice p {
        font-size: 11px;
        max-height: 120px;
    }

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

    .contact-form__notice-content h4 {
        font-size: 18px;
    }

    .contact-form__notice-content p,
    .contact-form__notice-content ul li {
        font-size: 13px;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .contact-info__card,
    .contact-main__feature,
    .contact-form__submit,
    .contact-form__notice {
        transition: none;
        animation: none;
    }
}

.contact-form__group input:focus,
.contact-form__group select:focus,
.contact-form__group textarea:focus,
.contact-form__submit:focus,
.contact-form__checkbox-label input:focus + .contact-form__checkbox-custom {
    outline: 2px solid var(--color3);
    outline-offset: 2px;
}

/* ================================================
   LOADING STATE
   ================================================ */
.contact-form__submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

/* Spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-form__submit .material-icons.spin {
    animation: spin 1s linear infinite;
}
