/* ============================================
   SOP Builder - Styles
   Matching oloxa.ai branding
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #000;
    --color-surface: #111;
    --color-surface-elevated: #1a1a1a;
    --color-border: #333;
    --color-text: #fff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666;
    --color-accent: #d4af37;
    --color-accent-hover: #e5c349;
    --color-success: #22c55e;
    --color-error: #ef4444;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-primary);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --transition: 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 2rem;
}

.logo-link {
    text-decoration: none;
}

.logo {
    height: 64px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1em;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 4px;
    background: var(--color-surface-elevated);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.4s ease;
}

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-surface-elevated);
    transition: all var(--transition);
}

.step-dot.active {
    background: var(--color-accent);
    transform: scale(1.25);
}

.step-dot.completed {
    background: var(--color-accent);
}

/* Form Container */
.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Steps */
.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.step-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* Typography */
h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--color-accent);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Value Props */
.value-props {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.value-icon {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.value-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-arrow {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.value-arrow svg {
    opacity: 0.5;
}

@media (max-width: 480px) {
    .value-props {
        gap: 0.75rem;
    }

    .value-icon {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    .value-text {
        font-size: 0.625rem;
    }

    .value-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Process Steps (Landing Page) */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    color: var(--color-accent);
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-md);
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    max-width: 140px;
}

.process-arrow {
    color: var(--color-accent);
    opacity: 0.7;
}

@media (max-width: 480px) {
    .process-steps {
        gap: 0.75rem;
    }

    .step-icon svg {
        width: 36px;
        height: 36px;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .process-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* Centered Button */
.btn-center {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.helper-text {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

input[type="email"],
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

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

.select-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-elevated);
    color: var(--color-text);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-group .btn-primary {
    flex: 1;
}

/* Privacy Note */
.privacy-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1.5rem;
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.option-card {
    cursor: pointer;
}

.option-card input {
    display: none;
}

.option-card .card-content {
    padding: 1.25rem;
    background: var(--color-surface-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.option-card:hover .card-content {
    border-color: var(--color-text-muted);
}

.option-card input:checked + .card-content {
    border-color: var(--color-accent);
    background: rgba(212, 175, 55, 0.05);
}

.card-icon {
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.option-card input:checked + .card-content .card-icon {
    color: var(--color-accent);
}

.option-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Input Method Toggle */
.input-method-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-md);
}

.method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.method-btn:hover {
    color: var(--color-text-secondary);
}

.method-btn.active {
    background: var(--color-surface);
    color: var(--color-text);
}

.input-method {
    animation: fadeIn 0.2s ease;
}

.input-method.hidden {
    display: none;
}

/* Upload Zone */
.upload-zone {
    padding: 3rem 2rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(212, 175, 55, 0.02);
}

.upload-icon {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.upload-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.upload-formats {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* File Preview */
.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
}

.file-preview.hidden {
    display: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
}

.file-info svg {
    color: var(--color-accent);
}

.remove-file {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.remove-file:hover {
    background: var(--color-surface);
    color: var(--color-error);
}

/* Tips */
.tip {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
}

/* Submit Button States */
.btn-submit .btn-text,
.btn-submit .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit .btn-loading.hidden {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: flex;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

/* Success State */
.success-content {
    text-align: center;
}

.success-icon {
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

.success-message {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.success-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-md);
}

.success-list li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--color-text-secondary);
}

.success-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
}

.cta-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.cta-section p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Error State */
.error-content {
    text-align: center;
}

.error-icon {
    color: var(--color-error);
    margin-bottom: 1.5rem;
}

.error-message {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* Resubmit Banner */
.resubmit-banner {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .step-content {
        padding: 1.5rem;
    }

    .option-cards {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn-secondary {
        order: 2;
    }
}
