/* ── AITD Executive Brief Form ── */

.aitd-eb-form-wrap {
    width: 100%;
    max-width: 100%;
}

/* ── Success State ── */
.aitd-eb-success {
    background: #111820;
    border: 1px solid #1E2A36;
    border-top: 3px solid #2e7d32;
    padding: 48px 32px;
    text-align: center;
}
.aitd-eb-success-icon {
    font-size: 48px;
    margin-bottom: 14px;
    animation: aitd-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes aitd-pop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.aitd-eb-success h3 {
    font-family: Inter, sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    color: #F0F8FF;
    margin: 0 0 10px;
    letter-spacing: 0.04em;
}
.aitd-eb-success p {
    font-family: Inter, sans-serif;
    font-size: 15px;
    color: #A0B4C4;
    line-height: 1.7;
    margin: 0;
}

/* ── Honeypot — must stay visually hidden ── */
.aitd-eb-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
    overflow: hidden;
    height: 0;
    width: 0;
}

/* ── Form ── */
.aitd-eb-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Field ── */
.aitd-eb-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

/* ── Label ── */
.aitd-eb-label {
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A0B4C4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.aitd-eb-req {
    color: #E8182E;
}
.aitd-eb-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    color: #6A8099;
}

/* ── Input ── */
.aitd-eb-form .aitd-eb-input {
    background: #0D1117 !important;
    border: 1px solid #2A3A4A !important;
    color: #F0F8FF !important;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 14px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.aitd-eb-input::placeholder {
    color: #2A3A4A;
}
.aitd-eb-input:focus {
    border-color: #ab1b0a;
    box-shadow: 0 0 0 3px rgba(171,27,10,0.15);
}
.aitd-eb-input:focus::placeholder {
    color: #6A8099;
}

/* ── Error States ── */
.aitd-eb-field.has-error .aitd-eb-input {
    border-color: #E8182E;
    box-shadow: 0 0 0 3px rgba(232,24,46,0.12);
}
.aitd-eb-field.has-error .aitd-eb-label {
    color: #E8182E;
}
.aitd-eb-error {
    display: none;
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: #E8182E;
    font-weight: 500;
    padding-top: 2px;
}
.aitd-eb-field.has-error .aitd-eb-error {
    display: block;
    animation: aitd-slide-in 0.2s ease;
}
@keyframes aitd-slide-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Global Error ── */
.aitd-eb-error-global {
    background: rgba(232,24,46,0.08);
    border: 1px solid rgba(232,24,46,0.3);
    border-left: 3px solid #E8182E;
    color: #E8182E;
    font-family: Inter, sans-serif;
    font-size: 14px;
    padding: 12px 16px;
}

/* ── Submit Button ── */
.aitd-eb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ab1b0a;
    color: #ffffff;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 18px 40px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, opacity 0.2s;
    width: 100%;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}
.aitd-eb-btn:hover:not(:disabled) {
    background: #941203;
    transform: translateY(-1px);
}
.aitd-eb-btn:active:not(:disabled) {
    transform: translateY(0);
}
.aitd-eb-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ── */
.aitd-eb-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: aitd-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes aitd-spin {
    to { transform: rotate(360deg); }
}
.aitd-eb-btn.is-loading .aitd-eb-spinner {
    display: block;
}
.aitd-eb-btn.is-loading .aitd-eb-btn-text {
    opacity: 0.8;
}

/* ── Note ── */
.aitd-eb-note {
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: #6A8099;
    text-align: center;
    margin: 0;
    padding: 0;
    letter-spacing: 0.04em;
}

/* ── Valid state glow ── */
.aitd-eb-field.is-valid .aitd-eb-input {
    border-color: #2A3A4A;
}
.aitd-eb-field.is-valid .aitd-eb-input:not(:focus) {
    border-color: rgba(0, 180, 100, 0.4);
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .aitd-eb-input {
        font-size: 16px; /* prevents iOS zoom */
    }
    .aitd-eb-btn {
        padding: 18px 24px;
        font-size: 15px;
    }
}
