/* ===== Contact Form Styles ===== */

.contact-form {
    margin-top: 20px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-label {
    display: block;
    font: bold 13px/19px Arial, Helvetica, sans-serif;
    color: #555555;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.contact-required {
    color: #ca3535;
    margin-left: 2px;
}

.contact-input,
.contact-textarea {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font: 14px/17px Arial, Helvetica, sans-serif;
    color: #555555;
    background-color: #ffffff;
    border: 2px solid #d8d8d8;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #15c1e5;
    background-color: #f5fdff;
}

.contact-textarea {
    resize: vertical;
    min-height: 140px;
}

.has-error .contact-input,
.has-error .contact-textarea {
    border-color: #ca3535;
    background-color: #fff8f8;
}

.contact-error {
    display: block;
    margin-top: 5px;
    font: 12px/17px Arial, Helvetica, sans-serif;
    color: #ca3535;
    text-transform: none;
}

.contact-submit {
    margin-top: 6px;
    padding: 8px 24px 9px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #15c1e5;
}

.contact-submit:hover {
    background-color: #1f9fba;
    text-decoration: none;
}

/* Alert banners */
.contact-alert {
    padding: 14px 18px;
    margin-bottom: 22px;
    font: 14px/20px Arial, Helvetica, sans-serif;
    border-left: 4px solid;
}

.contact-alert-success {
    background-color: #f0f8e8;
    border-color: #9bba1f;
    color: #4a5c10;
}

.contact-alert-error {
    background-color: #fff0f0;
    border-color: #ca3535;
    color: #7a1010;
}

/* ===== Voice input ===== */
.contact-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.contact-label-row .contact-label {
    margin-bottom: 0;
}

.voice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #d8d8d8;
    background: #ffffff;
    color: #939393;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.voice-btn:hover {
    border-color: #15c1e5;
    color: #15c1e5;
}

.voice-btn--hidden {
    display: none !important;
}

.voice-btn--recording {
    border-color: #ca3535;
    background-color: #ca3535;
    color: #ffffff;
    animation: voice-pulse 1.2s ease-in-out infinite;
}

@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(202, 53, 53, 0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(202, 53, 53, 0); }
}

.voice-status {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    font: 12px/17px Arial, Helvetica, sans-serif;
    color: #939393;
    text-transform: none;
    font-style: italic;
}

.voice-status--active {
    color: #15c1e5;
}

.voice-status--error {
    color: #ca3535;
    font-style: normal;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .contact-input,
    .contact-textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
}
