/* ============================================================
   The AI Shift — Master Trove shared form styles
   Edit here; changes apply to all 5 Master Trove pages.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f7ff;
    color: #1f2937;
    line-height: 1.6;
}

.container { max-width: 800px; margin: 0 auto; padding: 40px 20px; }

header { text-align: center; margin-bottom: 40px; }

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 12px;
}

h1 { font-size: 32px; margin-bottom: 12px; color: #1f2937; }

.subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* What You Get box */
.what-you-get {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
    text-align: left;
}

.what-you-get h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c3aed;
    margin-bottom: 12px;
}

.what-you-get ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.what-you-get li {
    font-size: 14px;
    color: #374151;
    padding-left: 20px;
    position: relative;
}

.what-you-get li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-weight: 700;
}

/* Form inputs — font-family:inherit is critical, prevents browser-default monospace */
.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

textarea { resize: vertical; min-height: 80px; }

/* Radio / checkbox groups */
.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-item { display: flex; align-items: flex-start; gap: 10px; }

input[type="radio"] { margin-top: 3px; cursor: pointer; accent-color: #7c3aed; }

.radio-item label { margin-bottom: 0; font-weight: 400; cursor: pointer; flex: 1; }

.checkbox-group { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.checkbox-item { display: flex; align-items: flex-start; gap: 10px; }

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #7c3aed;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    margin-bottom: 0;
    font-weight: 400;
}

/* Buttons */
.button-container { text-align: center; margin: 40px 0 0; }

button {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background: #6d28d9; }
button:active { background: #5b21b6; }

.back-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #7c3aed;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    text-decoration: underline;
}

/* Progress indicator */
.progress-indicator {
    text-align: center;
    margin-bottom: 24px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

/* Processing / success / error states */
.processing-state,
.success-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.processing-state.show,
.success-state.show { display: block; }

.error-state { display: none; text-align: center; padding: 40px 20px; }
.error-state.show { display: block; }

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3e8ff;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.success-icon { font-size: 48px; margin-bottom: 16px; display: inline-block; }

.processing-state h3,
.success-state h3 { font-size: 22px; color: #1f2937; margin-bottom: 8px; font-weight: 700; }

.processing-state p,
.success-state p { font-size: 14px; color: #6b7280; margin-bottom: 20px; }

.success-sub {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Post-submit: email tip + what's inside reminder */
.email-tip {
    background: #f3e8ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
    color: #5b21b6;
    margin: 0 auto 24px;
    max-width: 460px;
    text-align: left;
    line-height: 1.6;
}

.email-tip strong { color: #4c1d95; }

.whats-inside {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    max-width: 460px;
    margin: 0 auto;
    text-align: left;
}

.whats-inside-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7c3aed;
    margin-bottom: 12px;
}

.whats-inside ul { list-style: none; }

.whats-inside li {
    font-size: 14px;
    color: #374151;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.whats-inside li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 24px; }
    .what-you-get ul { grid-template-columns: 1fr; }
    .form-section { padding: 20px; }
}
