/**
 * Amorati Lead Capture - Form Styles
 *
 * Designed for dark backgrounds. White text throughout.
 * All classes prefixed with .amorati-lead- to avoid conflicts.
 */

.amorati-lead-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    color: #ffffff !important;
}

/* Logged-in state */
.amorati-lead-form--loggedin {
    text-align: center;
    color: #ffffff !important;
}

.amorati-lead-form--loggedin h3 {
    color: #b8860b !important;
}

.amorati-lead-form--loggedin p {
    color: #ffffff !important;
}

/* Heading (empty by default) */
.amorati-lead-heading {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #ffffff !important;
}

.amorati-lead-heading s {
    opacity: 0.5;
}

/* Subheading */
.amorati-lead-subheading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #ffffff !important;
}

/* Fields */
.amorati-lead-field {
    margin-bottom: 0.75rem;
}

.amorati-lead-field input[type="text"],
.amorati-lead-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.amorati-lead-field input:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
}

.amorati-lead-field input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Submit button + Dashboard button — no hover color change */
.amorati-lead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: #b8860b !important;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    letter-spacing: 0.02em;
}

.amorati-lead-btn:hover {
    background: #b8860b !important;
    color: #ffffff !important;
    opacity: 1;
}

.amorati-lead-btn:active {
    background: #b8860b !important;
    color: #ffffff !important;
}

.amorati-lead-btn:focus {
    background: #b8860b !important;
    color: #ffffff !important;
}

.amorati-lead-btn:visited {
    color: #ffffff !important;
}

.amorati-lead-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state */
.amorati-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.amorati-btn-loading svg {
    flex-shrink: 0;
}

/* Messages */
.amorati-lead-message {
    margin-top: 0.75rem;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.amorati-lead-message--error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5 !important;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.amorati-lead-message--success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .amorati-lead-form {
        padding: 1rem;
    }

    .amorati-lead-heading {
        font-size: 1.3rem;
    }
}
