/* UnionConnect Contact Form */

.uc-contact-form-wrap {
    max-width: 100%;
}

/* Labels */
.uc-contact-form-wrap label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--wp--preset--color--primary, #1b2a4a);
    margin-bottom: 0.35rem;
}

.uc-required {
    color: #e8941a;
}

.uc-field-sublabel {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.2rem;
}

/* Inputs, selects, textareas */
.uc-contact-form-wrap input[type="text"],
.uc-contact-form-wrap input[type="email"],
.uc-contact-form-wrap input[type="tel"],
.uc-contact-form-wrap select,
.uc-contact-form-wrap textarea {
    width: 100%;
    border: 2px solid #e2e5ea;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafbfc;
    font-family: inherit;
    box-sizing: border-box;
}

.uc-contact-form-wrap input:focus,
.uc-contact-form-wrap select:focus,
.uc-contact-form-wrap textarea:focus {
    border-color: var(--wp--preset--color--accent, #e8a838);
    box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.15);
    outline: none;
    background: #fff;
}

.uc-contact-form-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

/* Two-column name row */
.uc-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .uc-form-row-half {
        grid-template-columns: 1fr;
    }
}

/* Field spacing */
.uc-form-row {
    margin-bottom: 1.25rem;
}

/* Error display */
.uc-field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
}

/* Invalid field border */
.uc-field-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Valid field border */
.uc-field-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}

/* Email verification status */
.uc-email-status {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
    transition: opacity 0.2s ease;
}

.uc-email-status.uc-status-checking {
    color: #6c757d;
    display: block;
}
.uc-email-status.uc-status-checking::before {
    content: '\23F3 ';
}

.uc-email-status.uc-status-valid {
    color: #28a745;
    display: block;
}
.uc-email-status.uc-status-valid::before {
    content: '\2713 ';
}

.uc-email-status.uc-status-uncertain {
    color: #856404;
    display: block;
}
.uc-email-status.uc-status-uncertain::before {
    content: '\26A0 ';
}

/* Submit button - matches existing WPForms orange gradient */
.uc-submit-btn {
    background: linear-gradient(135deg, #e8a838, #d4872a);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(232, 168, 56, 0.3);
}

.uc-submit-btn:hover {
    background: linear-gradient(135deg, #d4872a, #c07020);
    box-shadow: 0 4px 14px rgba(232, 168, 56, 0.45);
    transform: translateY(-1px);
}

.uc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form status messages */
.uc-form-status {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.uc-form-status.uc-status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.uc-form-status.uc-status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Select: match text input height */
.uc-contact-form-wrap select {
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c757d' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Trial banner */
.uc-trial-banner {
    background: rgba(232, 168, 56, 0.08);
    border: 2px solid rgba(232, 168, 56, 0.3);
    border-left: 4px solid #e8a838;
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.uc-contact-form-wrap .uc-trial-banner-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.uc-trial-banner-label input[type="checkbox"] {
    width: 1.35rem;
    height: 1.35rem;
    accent-color: #e8a838;
    cursor: pointer;
    flex-shrink: 0;
}

.uc-trial-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.uc-trial-banner-text strong {
    font-size: 1.05rem;
    color: var(--wp--preset--color--primary, #1b2a4a);
}

.uc-trial-banner-sub {
    font-size: 0.85rem;
    color: #6c757d;
}

.uc-trial-banner-label-second {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(232, 168, 56, 0.15);
}

/* reCAPTCHA spacing */
.uc-contact-form-wrap .g-recaptcha {
    margin-bottom: 0.5rem;
}
