/* Contact page layout: desktop-first so first paint is correct before Tailwind loads. */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 639px) {
    .contact-cards {
        display: none;
    }
}

.captcha-field {
    width: 100%;
    overflow: hidden;
}

@media (min-width: 640px) {
    .captcha-field--wide {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.captcha-scale {
    display: block;
    transform-origin: top left;
    line-height: 0;
}

.captcha-scale .g-recaptcha,
.captcha-scale iframe {
    display: block;
    line-height: 0;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast.success {
    background: #10b981;
    color: white;
    border: 1px solid #059669;
}

.toast.error {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.toast.show {
    transform: translateX(0);
}

input:focus,
textarea:focus {
    background-color: #061430 !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px #061430 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 480px) {
    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
        transform: translateY(-120px);
    }

    .toast.show {
        transform: translateY(0);
    }
}
