/* ========================================
   BRIEF PAGE STYLES
   ======================================== */

/* HERO */
.brief-hero {
    padding: 140px 0 60px;
    position: relative; overflow: hidden;
    text-align: center;
}
.brief-hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(200,255,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.brief-hero-content { position: relative; z-index: 2; }
.brief-hero-title {
    font-family: var(--font-display); font-size: 48px;
    font-weight: 800; line-height: 1.15;
    letter-spacing: -2px; margin: 20px 0 16px;
}
.brief-hero-sub {
    color: var(--text-secondary); font-size: 17px;
    line-height: 1.6; max-width: 600px; margin: 0 auto;
}

/* PROGRESS */
.brief-progress-wrap {
    position: sticky; top: 60px; z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.brief-progress {
    height: 4px; background: var(--border);
    border-radius: 2px; overflow: hidden; margin-bottom: 16px;
}
.brief-progress-bar {
    height: 100%; background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.brief-steps-nav {
    display: flex; justify-content: space-between;
    gap: 8px;
}
.step-dot {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
    cursor: pointer; transition: var(--transition-fast);
    padding: 6px 12px; border-radius: 20px;
}
.step-dot span {
    width: 28px; height: 28px; display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%; border: 2px solid var(--border);
    font-family: var(--font-display); font-weight: 700;
    font-size: 12px; transition: var(--transition-fast);
    flex-shrink: 0;
}
.step-dot.active span {
    background: var(--accent); color: var(--bg-primary);
    border-color: var(--accent);
}
.step-dot.active { color: var(--text-primary); }
.step-dot.completed span {
    background: var(--accent); color: var(--bg-primary);
    border-color: var(--accent);
}
.step-dot.completed { color: var(--text-secondary); }

/* FORM SECTION */
.brief-form-section {
    padding: 48px 0 80px;
    min-height: 60vh;
}

/* ========================================
   STEP ANIMATIONS
   ======================================== */
.brief-step {
    display: none;
}
.brief-step.active {
    display: block;
    animation: briefStepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Forward enter */
.brief-step.enter-forward {
    animation: slideInRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Backward enter */
.brief-step.enter-backward {
    animation: slideInLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Forward exit */
.brief-step.exit {
    display: block;
    animation: slideOutLeft 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* Backward exit */
.brief-step.exit-backward {
    display: block;
    animation: slideOutRight 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-60px); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(60px); }
}

/* ========================================
   STEP HEADER
   ======================================== */
.brief-step-header {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.brief-step-num {
    font-family: var(--font-display); font-size: 48px;
    font-weight: 800; color: var(--accent);
    line-height: 1; opacity: 0.3;
}
.brief-step-header h2 {
    font-family: var(--font-display); font-size: 28px;
    font-weight: 700; margin-bottom: 4px;
}
.brief-step-header p {
    color: var(--text-secondary); font-size: 15px;
}

/* ========================================
   FIELDS
   ======================================== */
.brief-fields { max-width: 800px; }
.brief-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 20px;
}
.brief-field { margin-bottom: 20px; }
.brief-field label {
    display: block; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.brief-field input[type="text"],
.brief-field input[type="email"],
.brief-field input[type="tel"],
.brief-field input[type="url"],
.brief-field textarea,
.brief-field select {
    width: 100%; padding: 14px 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 15px; transition: var(--transition-fast);
    font-family: var(--font-body);
}
.brief-field input:focus,
.brief-field textarea:focus,
.brief-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}
.brief-field input::placeholder,
.brief-field textarea::placeholder {
    color: var(--text-muted);
}
.brief-field textarea { resize: vertical; min-height: 80px; }
.brief-field select option { background: var(--bg-card); }

/* Field error */
.brief-field .field-error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15) !important;
}
.brief-field .field-error-msg {
    color: #ff4444; font-size: 13px;
    margin-top: 6px; font-weight: 500;
    animation: fadeInDown 0.3s ease;
}

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

/* ========================================
   RADIO ROW
   ======================================== */
.brief-radio-row {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.brief-radio {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer;
    transition: var(--transition-fast); font-size: 14px;
    color: var(--text-secondary);
}
.brief-radio:hover { border-color: var(--border-light); }
.brief-radio input { display: none; }
.brief-radio-mark {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); position: relative;
    transition: var(--transition-fast); flex-shrink: 0;
}
.brief-radio-mark::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: var(--accent);
    transform: scale(0); transition: var(--transition-fast);
}
.brief-radio:has(input:checked) {
    border-color: var(--accent); background: rgba(200,255,0,0.05);
    color: var(--text-primary);
}
.brief-radio:has(input:checked) .brief-radio-mark {
    border-color: var(--accent);
}
.brief-radio:has(input:checked) .brief-radio-mark::after {
    transform: scale(1);
}

/* ========================================
   CHECKBOX ROW
   ======================================== */
.brief-check-row {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.brief-check {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer;
    transition: var(--transition-fast); font-size: 14px;
    color: var(--text-secondary);
}
.brief-check:hover { border-color: var(--border-light); }
.brief-check input { display: none; }
.brief-check-mark {
    width: 18px; height: 18px; border-radius: 4px;
    border: 2px solid var(--border); position: relative;
    transition: var(--transition-fast); flex-shrink: 0;
}
.brief-check-mark::after {
    content: '✓'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--bg-primary);
    transform: scale(0); transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brief-check:has(input:checked) {
    border-color: var(--accent); background: rgba(200,255,0,0.05);
    color: var(--text-primary);
}
.brief-check:has(input:checked) .brief-check-mark {
    background: var(--accent); border-color: var(--accent);
}
.brief-check:has(input:checked) .brief-check-mark::after {
    transform: scale(1);
}

/* ========================================
   TYPE CARDS (Step 2)
   ======================================== */
.type-cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.type-card {
    cursor: pointer; transition: var(--transition);
}
.type-card input { display: none; }
.type-card-inner {
    padding: 28px 24px;
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius); text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.type-card-inner::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.type-card-inner:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}
.type-card:has(input:checked) .type-card-inner {
    border-color: var(--accent);
    background: rgba(200,255,0,0.03);
    box-shadow: 0 0 30px rgba(200,255,0,0.1);
}
.type-card:has(input:checked) .type-card-inner::before {
    transform: scaleX(1);
}
.type-card-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
}
.type-card-icon svg { width: 100%; height: 100%; }
.type-card h3 {
    font-family: var(--font-display); font-size: 18px;
    font-weight: 700; margin-bottom: 8px;
}
.type-card p {
    color: var(--text-secondary); font-size: 13px;
    line-height: 1.5; margin-bottom: 12px;
}
.type-card-price {
    font-family: var(--font-display); font-size: 14px;
    font-weight: 600; color: var(--accent); opacity: 0.7;
}

/* Selected card pulse animation */
.type-card-inner.just-selected {
    animation: cardPulse 0.6s ease;
}
@keyframes cardPulse {
    0% { box-shadow: 0 0 0 0 rgba(200,255,0,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(200,255,0,0); }
    100% { box-shadow: 0 0 30px rgba(200,255,0,0.1); }
}

/* Shake animation for validation error */
.type-card-inner.shake {
    animation: shake 0.5s ease;
    border-color: #ff4444 !important;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ========================================
   COLOR PICKER
   ======================================== */
.color-picker-row {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.color-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer;
    transition: var(--transition-fast); font-size: 14px;
    color: var(--text-secondary);
}
.color-opt:hover { border-color: var(--border-light); }
.color-opt input { display: none; }
.color-swatch {
    width: 24px; height: 24px; border-radius: 6px;
    flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1);
}
.color-opt:has(input:checked) {
    border-color: var(--accent); background: rgba(200,255,0,0.05);
    color: var(--text-primary);
}

/* ========================================
   NAVIGATION BUTTONS
   ======================================== */
.brief-nav-buttons {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 48px; padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 800px;
}
.brief-btn-back {
    padding: 14px 32px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); color: var(--text-secondary);
    font-family: var(--font-display); font-weight: 600;
    font-size: 15px; cursor: pointer; transition: var(--transition);
    background: transparent;
}
.brief-btn-back:hover {
    border-color: var(--text-secondary); color: var(--text-primary);
    transform: translateX(-4px);
}
.brief-btn-next, .brief-btn-submit {
    padding: 14px 40px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--bg-primary);
    font-family: var(--font-display); font-weight: 700;
    font-size: 15px; cursor: pointer; transition: var(--transition);
    margin-left: auto; letter-spacing: 0.3px;
    border: none;
}
.brief-btn-next:hover, .brief-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200,255,0,0.25);
}
.brief-btn-next:active, .brief-btn-submit:active {
    transform: translateY(0);
}
.brief-btn-submit {
    background: linear-gradient(135deg, var(--accent) 0%, #a5d600 100%);
}
.brief-btn-submit:disabled {
    opacity: 0.6; cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   SUCCESS STATE
   ======================================== */
.brief-success {
    text-align: center; padding: 80px 0;
    animation: briefStepIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.brief-success-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    border-radius: 50%; background: var(--accent);
    color: var(--bg-primary); display: flex;
    align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700;
    animation: successPulse 2s ease infinite;
}
@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,255,0,0.3); }
    50% { box-shadow: 0 0 0 20px rgba(200,255,0,0); }
}
.brief-success h2 {
    font-family: var(--font-display); font-size: 36px;
    font-weight: 800; margin-bottom: 12px;
}
.brief-success p {
    color: var(--text-secondary); font-size: 17px;
    max-width: 500px; margin: 0 auto 32px;
    line-height: 1.6;
}
.brief-success .brief-btn-next {
    display: inline-flex; text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .type-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .brief-hero { padding: 120px 0 40px; }
    .brief-hero-title { font-size: 32px; letter-spacing: -1px; }
    .brief-hero-sub { font-size: 15px; }

    .brief-progress-wrap { top: 56px; }
    .brief-steps-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .step-dot { font-size: 0; padding: 6px; gap: 0; }
    .step-dot span { font-size: 12px; }

    .brief-row { grid-template-columns: 1fr; }
    .type-cards { grid-template-columns: 1fr; }

    .brief-step-header { flex-direction: column; gap: 12px; text-align: center; }
    .brief-step-num { font-size: 36px; }
    .brief-step-header h2 { font-size: 22px; }

    .brief-radio-row { flex-direction: column; }
    .brief-check-row { flex-direction: column; }
    .color-picker-row { flex-direction: column; }

    .brief-nav-buttons { flex-direction: column; }
    .brief-btn-back { text-align: center; }
    .brief-btn-next, .brief-btn-submit { margin-left: 0; text-align: center; }
}

@media (max-width: 480px) {
    .brief-hero-title { font-size: 28px; }
    .type-card-inner { padding: 20px 16px; }
}
