/* EAI Contact Form – stylesheet */

.eai-form-wrap {
    max-width: 620px;
    margin: 2rem auto;
    font-family: inherit;
}

.eai-form-title {
    font-size: 1.6rem;
    margin-bottom: .25rem;
}

.eai-form-subtitle {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

/* Response banner */
.eai-response {
    display: none;
    padding: .9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: .95rem;
    line-height: 1.5;
}
.eai-response.is-success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.eai-response.is-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Fields */
.eai-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

.eai-field label {
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .9rem;
    color: #222;
}

.eai-field label span {
    color: #dc2626;
    margin-left: 2px;
}

.eai-field input,
.eai-field textarea {
    padding: .6rem .85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: #111;
    width: 100%;
    box-sizing: border-box;
}

.eai-field input:focus,
.eai-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.eai-field-hint {
    margin-top: .3rem;
    color: #6b7280;
    font-size: .82rem;
}

/* Honeypot – visually hidden */
.eai-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit button */
.eai-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.8rem;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    margin-top: .5rem;
}

.eai-submit:hover { background: #4f46e5; }
.eai-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Spinner */
.eai-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eai-spin .7s linear infinite;
}

.eai-submit.is-loading .eai-btn-spinner { display: block; }
.eai-submit.is-loading .eai-btn-text { opacity: .7; }

@keyframes eai-spin {
    to { transform: rotate(360deg); }
}
