.hidden {
    display: none;
}

.contact-container form {
    padding: 20px;
    background: #FFF;
    border-radius: 30px;
    border: 3px solid #60A699;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, .40);
    width: 45%;
    max-width: 800px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items:center;
    margin: 60px auto;
    padding: 20px;
    /*temp for grids
    background-image: 
    linear-gradient(to right, rgba(0,0,0,.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.1) 1px, transparent 1px);
    background-size: 20px 20px;*/
}

.help-btn {
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    background: #DFF0FF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}


.help-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}


.help-btn img{
    width: 25px;
    height: 25px;
    aspect-ratio: 1/1;
}


.contact-text h1 {
    font-family: "Nunito Sans"; 
    font-size: 24px;
    font-weight: 600;
    color: #043259;
    display: block;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.contact-text p {
    font-family: "Nunito Sans"; 
    font-size: 14px;
    font-weight: 400;
    color: #043259;
    text-align: center;
    margin-bottom: 3px;
    margin-top: 10px;
    padding-left: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    word-wrap: break-word;
    line-height: 1.5;
}

.contact-type-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 20px 0 30px;
    
}

.contact-type {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-type.active h3,
.contact-type:hover h3 {
    background-color: #60A699;
    color: white;
}

.contact-user h3,
.contact-provider h3,
.contact-other h3 {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 600;
    padding: 8px 40px;
    border: 3px solid #60A699;
    background-color: white;
    border-radius: 8px;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.security-warning-container {
    width: 76%;
    height: auto;
    flex-shrink: 0;
    background-color: #fef5cd;
    border-radius: 6px;
    border: 1px solid #deb70e;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 58px;
    padding: 2px 24px;
}

.security-warning-container p {
    color:  #043259;
    font-family: "Nunito Sans";
    font-size: 12px;
    padding: 0;

}

.privacy-warning-container {
    border: 2px solid #043259;
    background-color: rgba(136, 170, 200, 0.19);
    width: 83%;
    margin-left: 58px;
    height: auto;
    flex-shrink: 0;
    border-radius: 6px;
    margin-bottom: 20px;
    align-items: center;
}


.privacy-warning-container h3{
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    padding-left: 24px;
    padding-right: 24px;

}

.privacy-warning-container section{
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    padding-left: 24px;
    padding-right: 24px;

}

.contact-check {
    margin-left: 58px
}

.contact-check label {
    font-size: 12px;
    font-family: "Nunito Sans";
    color: #043259; 
    margin-left: 10px
}

.contact-container button {
    width: 200px;
    height: 40px;
    background-color: #043259;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    margin: 15px auto;
    border: none; 
    display: block;
    cursor: pointer;
}



#contactDetails {
    width: 100%;
    padding: 20px;
}

#contactDetails * {
    box-sizing: border-box;
}

/*this is supose to be apellidos maybe remove 15px */
.name-fields, .casos-validation {
    width: 83%;
    margin-bottom: 20px;
    margin-left: 58px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.name-field {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    
}

.name-field label, .casos-validation label {
    font-size: 16px;
    font-family: "Nunito Sans";
    color: #043259;
    margin-bottom: 8px;
}
 

.name-field input, .npi input, .especialidad input {
    background-color: rgba(176, 217, 205, .35);
    font-size: 14px;
    font-family: "Nunito Sans";
    color: #043259;
    border: 2px solid #60A699;
    border-radius: 6px;
    height: 40px;
    padding: 8px 40px 8px 16px;
    width: 100%; /* Make each input take ~50% width minus gap */
}

.contactContacts {
    display: flex;
    width: 83%;
    margin-bottom: 20px;
    margin-left: 58px;
    gap: 20px;
    
}

.required {
    color: #E7964F;
    font-weight: bold;
}

.contactContacts label {
    font-size: 16px;
    font-family: "Nunito Sans";
    color: #043259;
    margin-bottom: 8px;

}
.phone-input, .email-input, .npi, .especialidad {
    width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.email-icon::before {
    content: "✉";
}

.input-with-icon input {
    width: 100%;
    height: 40px;
    background-color: rgba(176, 217, 205, .35);
    border: 2px solid #60A699;
    border-radius: 6px;
    padding: 5px;
    padding-left: 10px;
    font-size: 14px;
    font-family: "Nunito Sans";
    color: #043259;
    
}

.email-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('email-icon.png'); /* Add your icon */
    background-size: contain;
    background-repeat: no-repeat;
}


.contactSubject {
    width: 83%;
    margin-bottom: 20px;
    margin-left: 58px;
}


.contactDescription label {
    font-size: 16px;
    font-family: "Nunito Sans";
    color: #043259;
    margin-bottom: 8px;

}

.subject-input .input-open-text1 input {
    width: 100%;
    background-color: rgba(176, 217, 205, .35);
    border: 2px solid #60A699;
    border-radius: 6px;
    padding: 5px;
    padding-left: 10px;
    font-size: 14px;
    font-family: "Nunito Sans";
    color: #043259;
    height: 40px;
    margin-top: 8px;
}

.contactSubject label {
    font-size: 16px;
    font-family: "Nunito Sans";
    color: #043259;
}

.contactDescription {
    width: 83%;
    margin-bottom: 40px;
    margin-left: 58px;
}

.description-input {
    display: flex;
    flex-direction: column;
}

.input-open-text {
    width: 100%;
}

.contactDescription .input-open-text input {
    height: 100px; /* Taller field for details */
    width: 100%;
    background-color: rgba(176, 217, 205, .35);
    border: 2px solid #60A699;
    border-radius: 6px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
    font-family: "Nunito Sans";
    color: #043259;
    text-align: wrap;
}

.honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}


/*Overlays and Pop-ups in styles.css */


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    display: none;
}

.overlay.show {
    display: flex !important;
}

.popup {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    font-family: "Nunito Sans";
    color: #043259;
    display: none;
    z-index: 10000;
    /*transform: translate(-50%, -50%);*/
    
}

.popup.show {
    display: block !important;
}

.popup-success {
    border: 1px solid #60A699;
    box-shadow: 0 4px 6px 2px #60A699;
}

.popup-error {
    border: 1px solid #FF4D4D;
    box-shadow: 0 2px 2px 2px #FF4D4D;
}

.popup-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #043259;
}

.popup-message {
    font-family: "Nunito Sans";
    color: #043259;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    text-align: center;
    align-items: center;
    position: relative;
    justify-content: center;
}

.popup-message div:nth-child(1) {
    font-size: 24px;
    font-weight: 600px;
    margin: 15px 0;
}

.popup-message div:nth-child(2) {
    font-size: 16px;
    color: #043259;
    margin-bottom: 10px;
}

.npi-number {
    color: #036A6F;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 20px;
    font-weight: 600px;
    font-family: "Nunito Sans";
}


.popup-btn-primary {
    margin-top: 20px;
    background: #043259;
    color: #FFF;
    border-radius: 5px;
    font-family: "Nunito Sans";
    width: 196px;
    height: 45px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.popup-btn-primary:hover {
    background: #054276;
}

.popup-btn-error {
    margin-top: 20px;
    background: #E56163;
    color: #FFF;
    border-radius: 5px;
    font-family: "Nunito Sans";
    width: 196px;
    height: 45px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.popup-btn-error:hover {
    background: #c0392b;
}

#name, #lastname, #especialidad {
    text-transform: uppercase;
}


/* ==========================================
   CONTACT US RESPONSIVE
   ========================================== */

/* ==========================================
   TABLET (769px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .contact-container form {
        width: 60%;
        padding: 18px;
        border: 2px solid #60A699;
    }

    .contact-text h1 {
        font-size: 22px;
    }

    .contact-text p {
        font-size: 13px;
    }

    .contact-type-container {
        gap: 30px;
    }

    .contact-user h3,
    .contact-provider h3,
    .contact-other h3 {
        font-size: 15px;
        padding: 8px 30px;
    }
}

/* ==========================================
   MOBILE (481px - 768px)
   ========================================== */
@media (max-width: 768px) {
    .contact-container form {
        width: 80%;
        padding: 16px;
        margin: 40px auto;
        border: 2px solid #60A699;
    }

    .contact-text h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .contact-text p {
        font-size: 12px;
        max-width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Stack contact type buttons vertically */
    .contact-type-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
        margin: 20px auto;
    }

    .contact-type {
        width: auto;
        max-width: 280px;
    }

    .contact-user h3,
    .contact-provider h3,
    .contact-other h3 {
        font-size: 14px;
        padding: 10px 16px;
        width: auto;
        min-width: 200px;
    }

    /* Warning containers */
    .security-warning-container,
    .privacy-warning-container {
        width: 90%;
        margin: 0 auto 16px auto;
        padding: 12px 16px;
    }

    .security-warning-container p,
    .privacy-warning-container h3,
    .privacy-warning-container section {
        font-size: 11px;
        line-height: 1.5;
    }

    .contact-check {
        width: 90%; 
        margin: 0 auto 16px auto;  
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-check input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .contact-check label {
        font-size: 11px;
    }

    /* Contact details form */
    #contactDetails {
        padding: 10px;
    }

    .name-fields,
    .contactContacts,
    .contactSubject,
    .contactDescription,
    .casos-validation {
        width: 90%;
        margin: 0 auto 16px auto;

    }

    .name-fields {
        width: 90%;
        margin: 0 auto 16px auto;
        flex-direction: column;  /* ← Stack instead of side-by-side */
        gap: 16px;
    }

    .name-field {
        width: 100%;  /* ← Full width for each field */
    }

    .name-field label {
        font-size: 14px;
        font-weight: 500;
    }

    .name-field input {
        height: 42px;
        font-size: 14px;
    }



    /* Stack contact fields */
    .contactContacts {
        width: 90%;
        margin: 0 auto 16px auto;
        flex-direction: column;
        gap: 16px;
    }

    .phone-input,
    .email-input {
        width: 100%;
    }

    .contactContacts label {
        font-size: 14px;
        font-weight: 500;
    }

    .input-with-icon input {
        height: 42px;
        font-size: 13px;
    }

    /* Subject and description */
    .contactSubject,
    .contactDescription {
        width: 90%;
        margin: 0 auto 16px auto;
    }

    .contactSubject label,
    .contactDescription label {
        font-size: 14px;
        font-weight: 500;
    }

    .subject-input .input-open-text1 input {
        height: 42px;
        font-size: 13px;
    }

    .contactDescription .input-open-text input {
        height: 100px;
        font-size: 13px;
    }

    /* Button */
    .contact-container button {
        width: 80%;
        font-size: 13px;
    }
}

/* ==========================================
   MOBILE SMALL (321px - 480px)
   ========================================== */
@media (max-width: 480px) {
    .contact-container form {
        width: 80%;
        padding: 14px;
        margin: 30px auto;
        border: 2px solid #60A699;
    }

    .contact-text h1 {
        font-size: 18px;
    }

    .contact-text p {
        font-size: 11px;
    }

    .contact-type {
        width: 90%;
    }

    .contact-user h3,
    .contact-provider h3,
    .contact-other h3 {
        font-size: 13px;
        padding: 8px 16px;
    }

    .security-warning-container,
    .privacy-warning-container {
        width: 80%;
        padding: 8px 12px;
    }

    .security-warning-container p,
    .privacy-warning-container h3,
    .privacy-warning-container section {
        font-size: 10px;
    }

    .contact-check {
        margin-left: 2.5%;
        width: 95%;
    }

    .contact-check label {
        font-size: 10px;
    }

    .name-fields,
    .contactContacts,
    .contactSubject,
    .contactDescription {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .contactContacts label,
    .contactSubject label,
    .contactDescription label {
        font-size: 13px;
    }

    .input-with-icon input,
    .subject-input .input-open-text1 input {
        height: 36px;
        font-size: 12px;
    }

    .contactDescription .input-open-text input {
        height: 90px;
        font-size: 12px;
    }

    .contact-container button {
        width: 90%;
        height: 38px;
        font-size: 12px;
    }
}

/* ==========================================
   MOBILE TINY (< 320px)
   ========================================== */
@media (max-width: 320px) {
    .contact-container form {
        width: 80%;
        padding: 12px;
        border: 2px solid #60A699;
    }

    .contact-text h1 {
        font-size: 16px;
    }

    .contact-text p {
        font-size: 10px;
    }

    .contact-user h3,
    .contact-provider h3,
    .contact-other h3 {
        font-size: 12px;
        padding: 6px 12px;
    }

    .contact-container button {
        width: 95%;
        font-size: 11px;
    }
}