:root {
    --create-bg: #FAF9F6;
    --create-primary: #004D40;
    --create-primary-hover: #00332B;
    --create-text: #1A1A1A;
    --create-text-muted: #666666;
    --create-card-bg: #FFFFFF;
    --create-border: #E5E7E2;
    --create-shadow: 0 10px 30px rgba(0, 77, 64, 0.05);
    --create-shadow-hover: 0 15px 40px rgba(0, 77, 64, 0.12);
    --create-radius: 20px;
    --create-accent: #00BF9A;
}

body.create-page {
    background-color: var(--create-bg);
    color: var(--create-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.create-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    gap: 48px;
    position: relative;
}

.create-main {
    flex: 1;
    min-width: 0;
}

/* Header */
.create-header {
    text-align: left;
    margin-bottom: 48px;
}

.create-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--create-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.create-header p {
    font-size: 1.1rem;
    color: var(--create-text-muted);
    max-width: 600px;
}

/* Step 1: Selector */
.step-container {
    margin-bottom: 48px;
}

.step-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--create-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-label h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--create-primary);
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.option-card {
    background: var(--create-card-bg);
    border: 2px solid var(--create-border);
    border-radius: var(--create-radius);
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: var(--create-shadow);
}

.option-card:hover {
    transform: translateY(-4px);
    border-color: var(--create-primary);
    box-shadow: var(--create-shadow-hover);
}

.option-card.selected {
    border-color: var(--create-primary);
    background: #F0F7F6;
    box-shadow: 0 0 0 1px var(--create-primary), var(--create-shadow-hover);
}

.option-card .icon-box {
    width: 56px;
    height: 56px;
    background: #E0F2F1;
    color: var(--create-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.option-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.option-card p {
    font-size: 0.95rem;
    color: var(--create-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-card {
    margin-top: auto;
    padding: 10px 20px;
    border: 1.5px solid var(--create-primary);
    color: var(--create-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    transition: all 0.2s;
}

.option-card.selected .btn-card {
    background: var(--create-primary);
    color: white;
}

.checkmark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: var(--create-primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.option-card.selected .checkmark {
    display: flex;
}

/* Form Styles */
.details-form {
    background: var(--create-card-bg);
    border-radius: var(--create-radius);
    padding: 40px;
    box-shadow: var(--create-shadow);
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.details-form.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--create-primary);
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border: 1.5px solid var(--create-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--create-primary);
    box-shadow: 0 0 0 4px rgba(0, 77, 64, 0.05);
}

/* Tone Segmented Buttons */
.segmented-control {
    display: flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 12px;
}

.segment-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.segment-btn.active {
    background: white;
    color: var(--create-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Advanced Toggle */
.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--create-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
}

.advanced-content {
    display: none;
    padding: 20px;
    background: #F8FAFC;
    border-radius: 12px;
    margin-top: 16px;
}

/* CTA */
.cta-section {
    position: sticky;
    bottom: 24px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.btn-generate {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    background: var(--create-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-generate:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

.btn-generate:hover:not(:disabled) {
    background: var(--create-primary-hover);
    transform: translateY(-2px);
}

.trust-text {
    font-size: 0.85rem;
    color: var(--create-text-muted);
}

/* Right Side Preview */
.create-preview {
    width: 360px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.preview-mock {
    background: white;
    padding: 32px;
    border-radius: var(--create-radius);
    box-shadow: var(--create-shadow);
    border: 1px solid var(--create-border);
}

.preview-mock h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--create-text-muted);
    margin-bottom: 20px;
}

.doc-mini-page {
    width: 100%;
    aspect-ratio: 1 / 1.4;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.line {
    width: 100%;
    height: 8px;
    background: #D1D5DB;
    border-radius: 4px;
}

.line.title {
    width: 70%;
    height: 12px;
    background: var(--create-primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.line.medium {
    width: 85%;
}

.line.short {
    width: 60%;
}

.line.placeholder {
    background: #E5E7EB;
}

/* Generated Sections List */
.generated-sections-container {
    margin: 20px 0;
    padding: 0 10px;
}

.sections-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.sections-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-tag {
    background: #F1F5F9;
    color: #475569;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid #E2E8F0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.section-tag:hover {
    background: #E2E8F0;
}

.section-tag.active {
    background: #ECFDF5;
    color: #059669;
    border-color: #A7F3D0;
}

.bullet-list {
    list-style: none;
    padding: 0;
}

.bullet-item {
    font-size: 0.85rem;
    color: var(--create-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bullet-item::before {
    content: "✅";
    font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .create-container {
        flex-direction: column;
    }

    .create-preview {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .option-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .create-header h1 {
        font-size: 2rem;
    }
}

/* File Upload Indicator */
.upload-status {
    margin-top: 16px;
    padding: 12px;
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}