/* ── Shared lead/contact form styles ───────────────────────────
   Moved out of ContactManualForm.razor.css on 2026-09-07 so the same look applies to
   LeadCaptureForm (homepage), LeadCaptureCard (Avatar Studio) and the contact form. */

/* ═════════════════════════════════════════════
   Contact Manual Form — Hero-Inline Glass Style
   Matches ContactHeidiChat dark glass aesthetic
   ═════════════════════════════════════════════ */

.manual-form-glass {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
    background:
        linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)) padding-box,
        linear-gradient(135deg, #5B2D8E, #1A6B7A, #8B5CF6) border-box;
    border: 1px solid transparent;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Header ── */
.manual-form-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
    flex-shrink: 0;
}

.manual-form-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 2px 10px rgba(91, 45, 142, 0.25);
    background: rgba(91, 45, 142, 0.2);
    flex-shrink: 0;
}

.manual-form-avatar-icon {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #c084fc, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.manual-form-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
}

.manual-form-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.manual-form-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: formDotPulse 2s infinite ease-in-out;
}

@keyframes formDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Body ── */
.manual-form-body {
    padding: 1.25rem;
    flex: 1;
}

/* ── Labels ── */
.manual-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
}

.manual-form-required {
    color: #f87171;
}

/* ── Inputs & Select ── */
/* required because InputText/InputSelect/InputTextArea
   are child Blazor components — their rendered elements lack
   the CSS isolation attribute. */ .manual-form-input, .manual-form-select, .manual-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
} .manual-form-input::placeholder, .manual-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
} .manual-form-input:focus, .manual-form-select:focus, .manual-form-textarea:focus {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
} .manual-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2rem;
} .manual-form-select option {
    background: #1e293b;
    color: rgba(255, 255, 255, 0.9);
} .manual-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* ── Validation ── */ .validation-message {
    font-size: 0.7rem;
    color: #f87171;
    margin-top: 0.2rem;
}

/* ── Send Button ── */
.manual-form-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    background:
        linear-gradient(135deg, #5B2D8E, #1A6B7A, #8B5CF6) padding-box,
        linear-gradient(135deg, #5B2D8E, #1A6B7A, #8B5CF6) border-box;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(91, 45, 142, 0.3);
}

.manual-form-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(91, 45, 142, 0.45), 0 0 25px rgba(139, 92, 246, 0.25);
    filter: brightness(1.1);
}

.manual-form-send:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.95);
}

.manual-form-send::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.manual-form-send:hover:not(:disabled)::after {
    left: 120%;
}

.manual-form-send:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ── Error Message ── */
.manual-form-error {
    font-size: 0.78rem;
    color: #f87171;
}

/* ── Success State ── */
.manual-form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.manual-form-success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 0.75rem;
}

.manual-form-success-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
}

.manual-form-success-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}

.manual-form-reset-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.manual-form-reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .manual-form-body {
        padding: 1rem;
    }
}
