/* ============================================
   Brand & Logo Questionnaire - Modern Stylesheet
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --primary-dark: #0051D5;
    --primary-light: #5AC8FA;
    --accent-color: #5856D6;
    --success-color: #34C759;
    --error-color: #FF3B30;
    --warning-color: #FF9500;
    --text-primary: #000000;
    --text-secondary: #3C3C43;
    --text-tertiary: #8E8E93;
    --text-light: #C7C7CC;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --bg-tertiary: #E5E5EA;
    --bg-sidebar: #F9F9F9;
    --border-color: #E5E5EA;
    --border-focus: #007AFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Apple Typography Scale */
    --font-large-title: 2.125rem;    /* 34px - Large Title */
    --font-title-1: 1.75rem;          /* 28px - Title 1 */
    --font-title-2: 1.375rem;         /* 22px - Title 2 */
    --font-title-3: 1.25rem;          /* 20px - Title 3 */
    --font-headline: 1.0625rem;       /* 17px - Headline */
    --font-body: 1.0625rem;           /* 17px - Body */
    --font-callout: 1rem;             /* 16px - Callout */
    --font-subhead: 0.9375rem;        /* 15px - Subhead */
    --font-footnote: 0.8125rem;       /* 13px - Footnote */
    --font-caption-1: 0.75rem;        /* 12px - Caption 1 */
    --font-caption-2: 0.6875rem;      /* 11px - Caption 2 */
}

body.app-body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #F2F2F7;
    min-height: 100vh;
    color: var(--text-primary);
    font-size: var(--font-body);
    font-weight: 400;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top Bar */
.top-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: var(--font-headline);
    color: var(--text-primary);
    letter-spacing: -0.022em;
    line-height: 1.29412;
}

.brand-subtitle {
    font-size: var(--font-subhead);
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: -0.016em;
    line-height: 1.33337;
}

.meta-pill {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-footnote);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.006em;
    line-height: 1.38462;
}

/* Main Layout */
.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 80px;
    background: var(--bg-sidebar);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: var(--font-title-2);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.27273;
    letter-spacing: -0.022em;
}

.sidebar-intro {
    font-size: var(--font-subhead);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.46667;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.step-item:hover:not(.active) {
    background: rgba(0, 122, 255, 0.05);
}

.step-item.active {
    background: rgba(0, 122, 255, 0.1);
}

.step-item.completed .step-dot {
    background: var(--success-color);
    color: white;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.step-item.active .step-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.step-item[aria-current="step"] {
    background: rgba(0, 122, 255, 0.1);
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.step-label {
    font-weight: 600;
    font-size: var(--font-subhead);
    color: var(--text-primary);
    letter-spacing: -0.016em;
    line-height: 1.46667;
}

.step-caption {
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    line-height: 1.38462;
    font-weight: 400;
    letter-spacing: -0.006em;
}

.step-item.active .step-label {
    color: var(--primary-color);
}

.sidebar-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.sidebar-note {
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    line-height: 1.38462;
    font-weight: 400;
    letter-spacing: -0.006em;
    font-style: normal;
}

/* Main Card */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-inner {
    padding: 40px;
}

/* Progress Container */
.progress-container {
    margin-bottom: 32px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: var(--radius-sm);
}

.progress-label {
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: -0.006em;
    line-height: 1.38462;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 32px;
}

.step-kicker {
    font-size: var(--font-footnote);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    line-height: 1.38462;
}

.step-header h2 {
    font-size: var(--font-title-1);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.21429;
    letter-spacing: -0.022em;
}

.step-intro {
    font-size: var(--font-callout);
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.016em;
    margin-top: 8px;
}

/* Form Elements */
form label {
    display: block;
    margin-bottom: 24px;
    position: relative;
}

form label > span:first-child,
form label:not(:has(input)):not(:has(textarea)):not(:has(select)) {
    display: block;
    font-weight: 600;
    font-size: var(--font-subhead);
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.016em;
    line-height: 1.46667;
}

/* Field status for labels without wrapper */
form label:has(input:valid:not(:placeholder-shown)) .field-status,
form label:has(textarea:valid:not(:placeholder-shown)) .field-status {
    display: flex;
    background: var(--success-color);
    color: white;
}

form label:has(input:invalid:not(:placeholder-shown)) .field-status,
form label:has(textarea:invalid:not(:placeholder-shown)) .field-status {
    display: flex;
    background: var(--error-color);
    color: white;
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--font-body);
    font-family: inherit;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
    letter-spacing: -0.022em;
    line-height: 1.47059;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="url"]:focus,
form input[type="date"]:focus,
form textarea:focus,
form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Fieldset */
fieldset {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
}

fieldset legend {
    font-weight: 600;
    font-size: var(--font-subhead);
    color: var(--text-primary);
    padding: 0 12px;
    letter-spacing: -0.016em;
    line-height: 1.46667;
}

.hint {
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    margin-top: 8px;
    margin-bottom: 16px;
    line-height: 1.38462;
    font-weight: 400;
    letter-spacing: -0.006em;
}

/* ============================================
   Checkbox Styles - Apple UI Conventions
   ============================================ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.checkbox-wrapper-13 {
    display: flex;
    align-items: center;
    position: relative;
}

.checkbox-wrapper-13 input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.checkbox-wrapper-13 label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: var(--transition);
    margin: 0;
    width: 100%;
    font-weight: 400;
    font-size: var(--font-body);
    letter-spacing: -0.022em;
    line-height: 1.47059;
    -webkit-tap-highlight-color: rgba(0, 122, 255, 0.1);
    user-select: none;
}

.checkbox-wrapper-13 label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition);
    background: var(--bg-primary);
}

.checkbox-wrapper-13 input[type="checkbox"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

.checkbox-wrapper-13 input[type="checkbox"]:checked + label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5 2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-wrapper-13 label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.02);
}

.checkbox-wrapper-13 input[type="checkbox"]:focus-visible + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Slider Styles */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-row > span:first-child,
.slider-row > span:last-child {
    font-size: var(--font-footnote);
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 80px;
    text-align: right;
    letter-spacing: -0.006em;
    line-height: 1.38462;
}

.slider-row > span:last-child {
    text-align: left;
    min-width: 80px;
}

.slider-input {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

/* Reference Grid */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.reference-item {
    padding: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
}

.reference-item label {
    margin-bottom: 16px;
}

.reference-item label:last-child {
    margin-bottom: 0;
}

/* Project Extra Sections */
.project-extra {
    display: none;
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.project-extra h3 {
    font-size: var(--font-title-3);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.019em;
    line-height: 1.3;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--bg-tertiary);
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    font-size: var(--font-body);
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    letter-spacing: -0.022em;
    line-height: 1.47059;
}

.btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn.secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

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

.btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:not(.secondary):not(.primary) {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn:not(.secondary):not(.primary):hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Success Page (from process.php) */
.success-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 40px 24px;
}

.success-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

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

.success-icon {
    margin-bottom: 30px;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: var(--font-large-title);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.022em;
    line-height: 1.11765;
}

.success-message {
    font-size: var(--font-callout);
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.016em;
}

.success-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 30px 0;
    text-align: left;
}

.success-details p {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.success-details li:last-child {
    border-bottom: none;
}

.back-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    margin-top: 20px;
    letter-spacing: -0.022em;
    line-height: 1.47059;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shell {
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }
    
    .sidebar {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .shell {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 24px;
    }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .card-inner {
        padding: 24px;
    }
    
    .step-header h2 {
        font-size: var(--font-title-2);
    }
    
    .two-col {
        grid-template-columns: 1fr;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .app-main {
        padding: 16px;
    }
    
    .card-inner {
        padding: 20px;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .step-header h2 {
        font-size: var(--font-title-3);
    }
    
    .slider-row {
        flex-wrap: wrap;
    }
    
    .slider-row > span {
        min-width: auto;
        width: 100%;
        text-align: left !important;
    }
}

/* Focus visible for accessibility */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Brief Page Styles */
.brief-body {
    background: var(--bg-primary);
    padding: 0;
}

.brief-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.brief-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.brief-header h1 {
    font-size: var(--font-large-title);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.022em;
    line-height: 1.11765;
}

.brief-header > div p {
    color: var(--text-secondary);
    font-size: var(--font-callout);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.016em;
    line-height: 1.5;
}

.email-status {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--success-color);
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-top: 16px;
}

.print-btn {
    flex-shrink: 0;
}

.brief-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.brief-section:last-of-type {
    border-bottom: none;
}

.brief-section h2 {
    font-size: var(--font-title-1);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--primary-color);
    letter-spacing: -0.022em;
    line-height: 1.21429;
}

.brief-section h3 {
    font-size: var(--font-title-3);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    letter-spacing: -0.019em;
    line-height: 1.3;
}

.brief-section p {
    color: var(--text-secondary);
    line-height: 1.47059;
    margin-bottom: 16px;
    font-size: var(--font-body);
    font-weight: 400;
    letter-spacing: -0.022em;
}

.brief-section p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.brief-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.brief-section ul li {
    margin-bottom: 8px;
    line-height: 1.47059;
    font-size: var(--font-body);
    font-weight: 400;
    letter-spacing: -0.022em;
}

.brief-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.brief-footer p {
    color: var(--text-tertiary);
    font-style: normal;
    font-size: var(--font-subhead);
    font-weight: 400;
    letter-spacing: -0.016em;
    line-height: 1.46667;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    font-size: var(--font-body);
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Auto-save Notification */
.autosave-notification {
    position: fixed;
    top: 80px;
    right: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.autosave-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.autosave-icon {
    font-size: 1.2rem;
}

.autosave-text {
    font-size: var(--font-footnote);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Restore Notification */
.restore-notification {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid var(--success-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-footnote);
    color: var(--text-primary);
}

.restore-notification button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.restore-notification button:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Time Estimate */
.time-estimate {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: var(--font-footnote);
    color: var(--text-secondary);
}

.time-icon {
    font-size: 1.1rem;
}

.time-text {
    font-weight: 500;
}

/* Progress Info */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-percentage {
    font-size: var(--font-footnote);
    font-weight: 600;
    color: var(--primary-color);
}

/* Form Field Wrapper */
.form-field-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.form-field-wrapper label {
    margin-bottom: 0;
}

/* Field Status Indicators */
.field-status {
    position: absolute;
    right: 12px;
    top: 42px;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1;
}

.field-status.valid {
    background: var(--success-color);
    color: white;
}

.field-status.error {
    background: var(--error-color);
    color: white;
}

/* Field States */
.form-field-wrapper.field-valid input,
.form-field-wrapper.field-valid textarea,
form label:has(input:valid:not(:placeholder-shown)) input,
form label:has(textarea:valid:not(:placeholder-shown)) textarea {
    border-color: var(--success-color);
}

.form-field-wrapper.field-invalid input,
.form-field-wrapper.field-invalid textarea,
form label:has(input:invalid:not(:placeholder-shown)) input,
form label:has(textarea:invalid:not(:placeholder-shown)) textarea {
    border-color: var(--error-color);
}

/* Error Messages */
.error-message {
    display: block;
    color: var(--error-color);
    font-size: var(--font-footnote);
    margin-top: 4px;
    font-weight: 500;
    min-height: 18px;
}

.hint-text {
    display: block;
    color: var(--text-tertiary);
    font-size: var(--font-footnote);
    margin-top: 4px;
    font-weight: 400;
}

/* Character Counter - Enhanced */
.char-count {
    text-align: right;
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    margin-top: 4px;
    font-weight: 400;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.char-count.near-limit {
    color: var(--text-secondary);
}

.char-count.warning {
    color: var(--warning-color);
    font-weight: 500;
}

.char-count.error {
    color: var(--error-color);
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn-text {
    transition: opacity 0.2s;
}

/* Enhanced Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .btn,
    .checkbox-wrapper-13 label,
    .step-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-navigation {
        position: sticky;
        bottom: 0;
        background: var(--bg-primary);
        padding: 16px;
        margin: 0 -24px -24px;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }
    
    .autosave-notification {
        top: auto;
        bottom: 100px;
        right: 16px;
        left: 16px;
    }
    
    .sidebar {
        max-height: none;
    }
    
    .step-item {
        padding: 16px;
    }
    
    form input,
    form textarea,
    form select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .field-status {
        top: 38px;
    }
}

/* Keyboard Navigation Improvements */
.step-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Welcome Page Styles */
.welcome-page .app-main {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-container {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-progress {
    margin-bottom: 32px;
}

.welcome-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.welcome-title {
    font-size: var(--font-large-title);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.022em;
    line-height: 1.11765;
}

.welcome-subtitle {
    font-size: var(--font-callout);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.5;
    letter-spacing: -0.016em;
}

.welcome-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.welcome-card-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.welcome-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.welcome-card-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-card-title {
    font-size: var(--font-headline);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.019em;
}

.welcome-card-text {
    font-size: var(--font-subhead);
    color: var(--text-secondary);
    line-height: 1.46667;
    letter-spacing: -0.016em;
}

.welcome-actions {
    text-align: center;
}

.welcome-start-btn {
    min-width: 240px;
    margin-bottom: 16px;
}

.welcome-help-link {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: var(--font-subhead);
    text-decoration: none;
    transition: var(--transition);
}

.welcome-help-link:hover {
    color: var(--primary-color);
}

/* Questionnaire Page Styles */
.questionnaire-page .app-main {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Indicators */
.step-progress-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.fields-completed,
.overall-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-footnote);
}

.fields-completed-label,
.overall-progress-label {
    color: var(--text-secondary);
}

.fields-completed-count,
.overall-progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

/* Form Navigation Updates */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.save-progress-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.save-progress-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-content h3 {
    font-size: var(--font-title-2);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.modal-content p {
    font-size: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.save-link-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.resume-link-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-subhead);
    background: var(--bg-secondary);
}

.copy-link-btn {
    white-space: nowrap;
}

.save-note {
    font-size: var(--font-footnote);
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.close-modal-btn {
    width: 100%;
}

/* URL Preview */
.url-preview {
    display: block;
    margin-top: 4px;
    font-size: var(--font-footnote);
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.url-preview:hover {
    text-decoration: underline;
}

.questionnaire-container {
    max-width: 900px;
    margin: 0 auto;
}

.questionnaire-progress {
    margin-bottom: 32px;
}

.questionnaire-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.step-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--primary-color);
}

.step-title {
    font-size: var(--font-title-1);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.022em;
    line-height: 1.21429;
}

.step-intro {
    font-size: var(--font-callout);
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: -0.016em;
}

.step-content {
    margin-bottom: 40px;
}

/* Update form navigation for page-by-page */
.questionnaire-page .form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.questionnaire-page .form-navigation .btn {
    min-width: 140px;
}

/* Bottom Sheet Navigation for Mobile */
@media (max-width: 768px) {
    .form-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: 16px;
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-left,
    .nav-right {
        width: 100%;
        flex-direction: column;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .questionnaire-page .app-main {
        padding-bottom: 120px;
    }
    
    .step-progress-indicators {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Mobile adjustments for new layout */
@media (max-width: 768px) {
    .welcome-card,
    .questionnaire-card {
        padding: 32px 24px;
    }
    
    .welcome-title {
        font-size: var(--font-title-1);
    }
    
    .welcome-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-title {
        font-size: var(--font-title-2);
    }
}

/* Help Tooltips (Phase 3) */
.help-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
    transition: var(--transition);
    vertical-align: middle;
}

.help-tooltip-trigger:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.help-tooltip {
    background: var(--text-primary);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-footnote);
    max-width: 250px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

/* Onboarding Tooltip (Phase 3) */
.onboarding-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    max-width: 400px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.onboarding-content h3 {
    font-size: var(--font-title-2);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.onboarding-content p {
    font-size: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Advanced Animations (Phase 3) */
.form-field-wrapper {
    transition: transform 0.2s ease;
}

.form-field-wrapper:has(input:focus),
.form-field-wrapper:has(textarea:focus) {
    transform: scale(1.01);
}

.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* Mobile Swipe Indicators */
@media (max-width: 768px) {
    .questionnaire-page::after {
        content: '← Swipe to navigate →';
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 16px;
        border-radius: var(--radius-md);
        font-size: var(--font-footnote);
        z-index: 100;
        animation: fadeInOut 3s ease;
        pointer-events: none;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        20%, 80% { opacity: 1; }
    }
}

/* Enhanced Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Progress Pulse Animation */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Field Focus Ring Enhancement */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Success State Animation */
.field-status.valid {
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Error State Animation */
.field-status.error {
    animation: errorShake 0.3s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Color Picker Styles */
.color-picker-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 16px;
}

.color-picker-wrapper {
    margin-bottom: 0;
}

.color-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.color-picker {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: var(--radius-sm);
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: var(--radius-sm);
}

.color-hex-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-subhead);
    font-family: 'Monaco', 'Menlo', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.color-hex-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Logo Type Selection Grid - Consistent with Checkbox Style */
.logo-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.logo-style-card {
    position: relative;
}

.logo-style-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.logo-style-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
    text-align: center;
    width: 100%;
    min-height: 200px;
    justify-content: flex-start;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 122, 255, 0.1);
    user-select: none;
}

.logo-style-card label::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: var(--transition);
    z-index: 1;
}

.logo-style-card label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.02);
}

.logo-style-card input[type="radio"]:checked + label,
.logo-style-card input[type="radio"]:checked ~ label {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

.logo-style-card input[type="radio"]:checked + label::before,
.logo-style-card input[type="radio"]:checked ~ label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5 2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo-style-card input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.logo-style-image {
    width: 100%;
    height: 100px;
    margin-bottom: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.logo-style-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: var(--bg-primary);
}

.logo-style-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.logo-style-label {
    font-size: var(--font-subhead);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
    margin-bottom: 4px;
    letter-spacing: -0.016em;
    line-height: 1.46667;
}

.logo-style-description {
    font-size: var(--font-footnote);
    color: var(--text-secondary);
    line-height: 1.38462;
    letter-spacing: -0.011em;
    margin-top: 4px;
    text-align: center;
    max-width: 100%;
}

/* ============================================
   Radio & Checkbox Groups - Apple UI Style
   ============================================ */

/* Standard Radio Group - Checkbox Style for Consistency */
.radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* Desktop: Multi-column layout for better space usage */
@media (min-width: 769px) {
    .radio-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* For groups with 3 or fewer options, use 1 column if preferred */
    /* For groups with 4+ options, 2 columns work well */
    /* For groups with 6+ options, consider 3 columns */
    .radio-group:has(.radio-wrapper:nth-child(6)) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.radio-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.radio-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.radio-wrapper label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: var(--transition);
    margin: 0;
    width: 100%;
    font-weight: 400;
    font-size: var(--font-body);
    letter-spacing: -0.022em;
    line-height: 1.47059;
    -webkit-tap-highlight-color: rgba(0, 122, 255, 0.1);
    user-select: none;
}

.radio-wrapper label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-right: 12px;
    flex-shrink: 0;
    transition: var(--transition);
    background: var(--bg-primary);
}

.radio-wrapper input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

.radio-wrapper input[type="radio"]:checked + label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5 2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.radio-wrapper label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.02);
}

.radio-wrapper input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Radio Group Pills - Checkbox Style for Consistency */
.radio-group-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-group-pills .radio-wrapper {
    flex: 1;
    min-width: 120px;
}

.radio-group-pills .radio-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.radio-group-pills .radio-wrapper label {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--bg-primary);
    transition: var(--transition);
    font-size: var(--font-subhead);
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.radio-group-pills .radio-wrapper label::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: var(--transition);
}

.radio-group-pills .radio-wrapper label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
    color: var(--primary-color);
}

.radio-group-pills .radio-wrapper input[type="radio"]:checked + label,
.radio-group-pills .radio-wrapper input[type="radio"]:checked ~ label {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.radio-group-pills .radio-wrapper input[type="radio"]:checked + label::before,
.radio-group-pills .radio-wrapper input[type="radio"]:checked ~ label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5 2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.radio-group-pills .radio-wrapper input[type="radio"]:checked + label:hover,
.radio-group-pills .radio-wrapper input[type="radio"]:checked ~ label:hover {
    background: rgba(0, 122, 255, 0.15);
}

/* Checkbox Group Pills */
.checkbox-group-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group-pills .checkbox-wrapper-13 {
    flex: 0 0 auto;
    margin: 0;
}

.checkbox-group-pills .checkbox-wrapper-13 input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.checkbox-group-pills .checkbox-wrapper-13 label {
    display: inline-block;
    padding: 12px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: var(--transition);
    cursor: pointer;
    font-size: var(--font-subhead);
    font-weight: 400;
    text-align: center;
    min-width: 100px;
    color: var(--text-primary);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.checkbox-group-pills .checkbox-wrapper-13 label::before {
    display: none;
}

.checkbox-group-pills .checkbox-wrapper-13 label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
    color: var(--primary-color);
}

.checkbox-group-pills .checkbox-wrapper-13 input[type="checkbox"]:checked + label,
.checkbox-group-pills .checkbox-wrapper-13 input[type="checkbox"]:checked ~ label {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.checkbox-group-pills .checkbox-wrapper-13 input[type="checkbox"]:checked + label:hover,
.checkbox-group-pills .checkbox-wrapper-13 input[type="checkbox"]:checked ~ label:hover {
    background: rgba(0, 122, 255, 0.15);
}

/* Duplicate removed - using standard checkbox styles defined above */

/* Step Reassurance Text - Apple Style */
.step-reassurance {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: var(--font-subhead);
    line-height: 1.46667;
    letter-spacing: -0.016em;
    padding: 14px 18px;
    background: rgba(0, 122, 255, 0.06);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--radius-md);
    border-top: 1px solid rgba(0, 122, 255, 0.1);
    border-right: 1px solid rgba(0, 122, 255, 0.1);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
}

/* Field Hint Text - Apple Style */
.field-hint {
    margin-top: 8px;
    font-size: var(--font-footnote);
    color: var(--text-secondary);
    line-height: 1.38462;
    letter-spacing: -0.011em;
    font-style: normal;
}

/* Duplicate removed - using consolidated styles above */

/* Project Extra Sections */
.project-extra {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
}

.project-extra h3 {
    font-size: var(--font-title-3);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Mobile adjustments for new UI elements */
@media (max-width: 768px) {
    .color-picker-group {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Mobile: Single column for radio groups */
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .radio-group-pills {
        flex-direction: column;
        gap: 8px;
    }
    
    .radio-group-pills .radio-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .logo-style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .logo-style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .logo-style-card label {
        min-height: 180px;
        padding: 14px 12px;
    }
    
    .logo-style-card label::before {
        top: 10px;
        left: 10px;
        width: 18px;
        height: 18px;
    }
    
    .logo-style-image {
        height: 80px;
        margin-top: 6px;
    }
    
    .logo-style-description {
        font-size: var(--font-caption-1);
    }
    
    .radio-group-pills {
        flex-direction: column;
        gap: 8px;
    }
    
    .radio-group-pills .radio-wrapper {
        width: 100%;
        min-width: 100%;
    }
    
    .checkbox-group-pills {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-group-pills .checkbox-wrapper-13 {
        width: 100%;
    }
    
    .checkbox-group-pills .checkbox-wrapper-13 label {
        width: 100%;
        min-width: 100%;
    }
    
    .step-reassurance {
        padding: 12px 14px;
        font-size: var(--font-footnote);
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .sidebar,
    .form-navigation,
    .print-btn,
    .autosave-notification,
    .skip-link,
    .help-tooltip-trigger,
    .onboarding-tooltip {
        display: none;
    }
    
    .shell {
        grid-template-columns: 1fr;
    }
    
    .brief-wrapper {
        padding: 0;
    }
    
    .brief-section {
        page-break-inside: avoid;
    }
}
