/**
 * Contact page layout and form styles.
 */

.contact-page main > section:first-of-type {
    margin-top: 2rem !important;
}

@media (min-width: 768px) {
    .contact-page main > section:first-of-type {
        margin-top: 3rem !important;
    }

    .contact-layout {
        align-items: stretch !important;
    }

    .contact-info-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 1.5rem !important;
    }

    .contact-info-col > * {
        margin-top: 0 !important;
        height: auto !important;
    }
}

@media (min-width: 1024px) {
    .contact-layout.gap-10 {
        grid-template-columns: 1.2fr 0.8fr !important;
    }
}

.contact-input:focus {
    border-color: #2BC5D4 !important;
    box-shadow: 0 0 0 3px rgba(43, 197, 212, 0.1) !important;
    outline: 0;
}

.contact-submit {
    margin-top: 1.5rem !important;
    padding: 0.75rem 2.5rem !important;
    min-width: 200px;
    font-size: 1rem !important;
}

.contact-cta-link {
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem !important;
}

@media (max-width: 640px) {
    .contact-submit,
    .contact-cta-link {
        min-width: 100%;
        width: 100%;
        padding: 0.625rem 1.5rem !important;
    }
}

@media (max-width: 359px) {
    .contact-input {
        padding: 0.5rem !important;
        font-size: 0.875rem !important;
    }

    .contact-captcha-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    #captcha_answer {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

#captcha_answer {
    width: 4.5rem !important;
    height: 2.5rem !important;
    padding: 0.25rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    text-align: center;
}

@media (min-width: 360px) {
    #captcha_answer {
        margin-left: auto;
    }
}

#captcha_answer::-webkit-inner-spin-button,
#captcha_answer::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#captcha_answer[type="number"] {
    -moz-appearance: textfield;
}

.contact-captcha-row {
    padding: 0.5rem 1rem !important;
    background-color: #f8fafc !important;
    border-radius: 0.75rem !important;
}
