/* ==================================================
   Nuclear Fancy Pants Edition™ — NUCLEAR+++
   File: /assets/css/setup.css
   Description: Setup tab styles — onboarding hero, steps, license modal
   Last Edited: 2026-04-22
   ================================================== */

@import url('fonts.css');
@import url('tabs.css');

/* ── Page background ───────────────────────────────────────────────── */
#wpcontent,
#wpbody,
#wpbody-content {
    background: #F9FAFB;
}

/* ── WP wrap width override ───────────────────────────────────── */
#automarketer-ai-dashboard {
    max-width: 900px;
}

/* ── Page header ───────────────────────────────────────────────────── */
#amai-setup-header {
    padding: 28px 0 0;
}

.amai-setup-title {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #D97757;
    margin: 0 0 4px;
    line-height: 1.2;
}

.amai-setup-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #78716C;
    margin: 0 0 20px;
}

/* ── Tabs (shared partial) ─────────────────────────────────────────── */

/* ── Setup wrapper ─────────────────────────────────────────────────── */
#amai-setup {
    max-width: 860px;
    padding-bottom: 60px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.am-setup-hero {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 36px 40px;
    text-align: center;
    margin-bottom: 24px;
}

.am-setup-hero.is-active {
    background: linear-gradient(135deg, #FDF4F0 0%, #fff 60%);
    border-color: #E4B89D;
}

.am-setup-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D97757;
    margin-bottom: 10px;
}

.am-setup-hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #1C1917;
    margin: 0 0 12px;
    line-height: 1.25;
}

.am-setup-hero-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14.5px;
    color: #57534E;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.am-setup-cta {
    display: inline-block;
    background: #D97757;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 26px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    margin-bottom: 10px;
}

.am-setup-cta:hover {
    background: #C4623E;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.am-setup-cta--green {
    background: #16A34A;
}

.am-setup-cta--green:hover {
    background: #15803D;
}

.am-setup-cta-sub {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #A8A29E;
    margin-top: 4px;
}

/* ── Steps ─────────────────────────────────────────────────────────── */
.am-setup-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.am-setup-step {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: start;
}

.am-setup-step.is-done {
    border-color: #D1FAE5;
    background: #F0FDF4;
}

.am-setup-step.is-locked {
    opacity: 0.55;
}

.am-setup-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5F5F4;
    border: 1.5px solid #E7DDD5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #57534E;
    grid-row: 1 / 4;
    margin-top: 2px;
    flex-shrink: 0;
}

.am-setup-step.is-done .am-setup-step-num {
    background: #D1FAE5;
    border-color: #6EE7B7;
    color: #059669;
}

.am-setup-step-title {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #1C1917;
    align-self: center;
}

.am-setup-step-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
    line-height: 1.5;
}

.am-setup-step-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #D97757;
    text-decoration: none;
    margin-top: 4px;
    display: inline-block;
}

.am-setup-step-link:hover {
    color: #C4623E;
    text-decoration: underline;
}

.am-btn-reset {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.am-setup-step-lock-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px;
    color: #A8A29E;
    font-style: italic;
    margin-top: 4px;
    display: inline-block;
}

/* ── License modal ─────────────────────────────────────────────────── */
#amai-license-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(28, 25, 23, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

#amai-license-modal.show {
    display: flex;
}

.am-lic-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 460px;
    margin: 24px;
    overflow: hidden;
}

.am-lic-header {
    padding: 24px 28px 18px;
    border-bottom: 1.5px solid #F5F0ED;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.am-lic-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D97757;
    margin-bottom: 4px;
}

.am-lic-title {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1C1917;
}

.am-lic-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #A8A29E;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.am-lic-close:hover {
    color: #57534E;
}

.am-lic-body {
    padding: 22px 28px;
}

.am-lic-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #DC2626;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: none;
}

.am-lic-privacy {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
    margin-bottom: 18px;
    line-height: 1.5;
}

.am-lic-field {
    margin-bottom: 14px;
}

.am-lic-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #292524;
    margin-bottom: 5px;
}

.am-required {
    color: #D97757;
}

.am-lic-input {
    width: 100%;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1C1917;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.am-lic-input:focus {
    border-color: #D97757;
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.1);
}

.am-lic-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12.5px;
    color: #78716C;
    margin-top: 6px;
    line-height: 1.4;
}

.am-lic-footer {
    padding: 16px 28px 22px;
    border-top: 1.5px solid #F5F0ED;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.am-lic-btn-cancel {
    background: none;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    color: #78716C;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 18px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.am-lic-btn-cancel:hover {
    border-color: #A8A29E;
    color: #292524;
}

.am-lic-btn-submit {
    background: #D97757;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.am-lic-btn-submit:hover {
    background: #C4623E;
}

.am-lic-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.am-setup-reset-wrap {
    text-align: center;
    margin-top: 24px;
}
.am-setup-reset-link {
    background: none;
    border: none;
    padding: 0;
    color: #A8A29E;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}
.am-setup-reset-link:hover {
    color: #78716C;
}

/* Business profile inline form */
.am-setup-step.is-active-step {
    border-left: 3px solid #D97757;
    padding-left: 18px;
}
.am-setup-profile-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.am-spf-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #B91C1C;
    font-size: 13px;
    padding: 10px 14px;
}
.am-spf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.am-spf-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.am-spf-label .am-required {
    color: #D97757;
    margin-left: 2px;
}
.am-spf-select,
.am-spf-textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1F2937;
    background: #FFFFFF;
    border: 1.5px solid #E7DDD5;
    border-radius: 8px;
    padding: 9px 12px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.am-spf-select:focus,
.am-spf-textarea:focus {
    border-color: #D97757;
}
.am-spf-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
.am-spf-hint {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.4;
}
.am-spf-submit {
    align-self: flex-start;
    background: #D97757;
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
}
.am-spf-submit:hover {
    background: #C4663E;
}
.am-spf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.am-spf-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.am-spf-cancel {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #9CA3AF;
    cursor: pointer;
    text-decoration: underline;
}
.am-spf-cancel:hover {
    color: #6B7280;
}
