/* ═══════════════════════════════════════════════
   Art Miami Magazine — Artist Interview
   Inspired by artmiamimagazine.com aesthetic
   ═══════════════════════════════════════════════ */

:root {
    --am-primary: #4db2ec;
    --am-primary-dark: #006599;
    --am-dark: #0a0a0a;
    --am-darker: #050505;
    --am-card: #111111;
    --am-card-hover: #1a1a1a;
    --am-border: #222222;
    --am-border-light: #333333;
    --am-text: #eaeaea;
    --am-text-muted: #888888;
    --am-text-dim: #666666;
    --am-accent: #4db2ec;
    --am-success: #00d084;
    --am-error: #ff5419;
    --am-gold: #fcb900;
    --am-white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', 'Roboto', sans-serif;
    --font-ui: 'Roboto', 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-body);
    background-color: var(--am-dark);
    color: var(--am-text);
    line-height: 1.7;
    min-height: 100vh;
}
::selection { background: var(--am-primary); color: var(--am-white); }

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--am-border);
    padding: 12px 0;
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: center;
}
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; align-items: center; }
.logo-title {
    font-family: var(--font-display); font-size: 28px; font-weight: 700;
    color: var(--am-white); letter-spacing: 1px; line-height: 1.1;
}
.logo-tagline {
    font-family: var(--font-ui); font-size: 10px; color: var(--am-text-muted);
    letter-spacing: 3px; text-transform: uppercase; margin-top: 2px;
}

/* ─── Screens (shared) ─── */
.screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 80px;
}

/* ─── Language Selection ─── */
.language-content {
    text-align: center;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out;
}
.language-icon { margin-bottom: 24px; }
.language-title {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 700; color: var(--am-white);
    margin-bottom: 8px;
}
.language-sub {
    font-size: 15px; color: var(--am-text-muted); margin-bottom: 40px;
}
.language-buttons {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.language-btn {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 32px 48px;
    background: var(--am-card);
    border: 1.5px solid var(--am-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}
.language-btn:hover {
    border-color: var(--am-primary);
    background: var(--am-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(77, 178, 236, 0.15);
}
.lang-flag { font-size: 48px; line-height: 1; }
.lang-name {
    font-family: var(--font-ui); font-size: 16px; font-weight: 600;
    color: var(--am-text);
}

/* ─── Welcome Screen ─── */
.welcome-content {
    text-align: center;
    max-width: 680px;
    animation: fadeInUp 0.6s ease-out;
}
.welcome-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(77, 178, 236, 0.1);
    border: 1px solid rgba(77, 178, 236, 0.3);
    border-radius: 50px;
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 500; color: var(--am-primary);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 28px;
}
.welcome-content h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px); font-weight: 700;
    color: var(--am-white); line-height: 1.15; margin-bottom: 24px;
}
.welcome-text {
    font-size: 17px; color: var(--am-text-muted); line-height: 1.9;
    margin-bottom: 36px;
}
.welcome-meta {
    display: flex; gap: 28px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap;
}
.welcome-meta-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--am-text-dim);
}
.welcome-meta-item svg { color: var(--am-primary); }
.btn-start {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 44px;
    background: var(--am-primary); color: var(--am-white);
    border: none; border-radius: 8px;
    font-family: var(--font-ui); font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.5px;
}
.btn-start:hover {
    background: #3a9fd8; transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 178, 236, 0.3);
}
.btn-start .arrow { font-size: 20px; transition: transform 0.3s ease; }
.btn-start:hover .arrow { transform: translateX(4px); }

/* ─── Form Container ─── */
.form-container {
    max-width: 780px; margin: 0 auto; padding: 100px 24px 60px;
    min-height: 100vh; animation: fadeInUp 0.6s ease-out;
}

/* ─── Progress Steps ─── */
.progress-wrapper {
    margin-bottom: 48px; padding: 0 20px;
    transition: opacity 0.3s ease;
}
.progress-steps {
    display: flex; align-items: center; justify-content: center; gap: 0;
}
.progress-step {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: all 0.3s ease;
}
.step-circle {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-ui); font-size: 14px; font-weight: 600;
    background: var(--am-card); color: var(--am-text-dim);
    border: 2px solid var(--am-border);
    transition: all 0.4s ease;
}
.progress-step.active .step-circle {
    background: var(--am-primary); color: var(--am-white);
    border-color: var(--am-primary);
    box-shadow: 0 0 20px rgba(77, 178, 236, 0.3);
}
.progress-step.completed .step-circle {
    background: var(--am-success); color: var(--am-white);
    border-color: var(--am-success);
}
.progress-step.completed .step-circle::after {
    content: '\2713'; font-size: 16px;
}
.progress-step.completed .step-circle { font-size: 0; }
.step-label {
    font-family: var(--font-ui); font-size: 11px; font-weight: 500;
    color: var(--am-text-dim); letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.3s ease;
}
.progress-step.active .step-label { color: var(--am-primary); }
.progress-step.completed .step-label { color: var(--am-success); }
.progress-line {
    flex: 1; height: 2px; background: var(--am-border);
    margin: 0 8px; margin-bottom: 24px;
    max-width: 60px; position: relative;
}
.progress-line::after {
    content: ''; position: absolute; left: 0; top: 0;
    height: 100%; width: 0; background: var(--am-primary);
    transition: width 0.5s ease;
}
.progress-line.filled::after { width: 100%; }

/* ─── Form Steps ─── */
.form-step { animation: fadeInUp 0.5s ease-out; }
.step-header { margin-bottom: 36px; }
.step-number {
    font-family: var(--font-display); font-size: 56px; font-weight: 700;
    color: rgba(77, 178, 236, 0.1); line-height: 1; margin-bottom: 8px;
}
.step-icon-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(77, 178, 236, 0.08);
    border: 1.5px solid rgba(77, 178, 236, 0.2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.step-header h2 {
    font-family: var(--font-display); font-size: 30px; font-weight: 700;
    color: var(--am-white); margin-bottom: 8px;
}
.step-header p {
    font-size: 15px; color: var(--am-text-muted); max-width: 520px;
}

/* ─── Question Text ─── */
.question-text {
    display: block;
    font-family: var(--font-body);
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--am-text) !important;
    line-height: 1.7;
    margin-bottom: 20px !important;
}

/* ─── Form Elements ─── */
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.form-group { margin-bottom: 28px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-ui); font-size: 14px; font-weight: 500;
    color: var(--am-text); margin-bottom: 8px;
}
.form-group label svg { color: var(--am-primary); flex-shrink: 0; }
.required { color: var(--am-primary); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
    width: 100%; padding: 14px 18px;
    background: var(--am-card); border: 1.5px solid var(--am-border);
    border-radius: 10px; color: var(--am-text);
    font-family: var(--font-body); font-size: 15px;
    transition: all 0.3s ease; outline: none;
}
input:focus, textarea:focus {
    border-color: var(--am-primary);
    background: var(--am-card-hover);
    box-shadow: 0 0 0 4px rgba(77, 178, 236, 0.1);
}
input::placeholder, textarea::placeholder {
    color: var(--am-text-dim); font-size: 14px;
}
textarea {
    resize: vertical; min-height: 140px; line-height: 1.7;
}

/* Error state */
.form-group.error input,
.form-group.error textarea {
    border-color: var(--am-error);
    box-shadow: 0 0 0 4px rgba(255, 84, 25, 0.1);
}
.form-group .error-msg {
    display: none; font-size: 12px; color: var(--am-error);
    margin-top: 6px; padding-left: 4px;
}
.form-group.error .error-msg { display: block; }

/* ─── Social Grid ─── */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.social-field.full-width { grid-column: 1 / -1; }
.social-field label {
    display: flex; align-items: center; gap: 8px;
}
.social-field label svg {
    width: 18px; height: 18px; flex-shrink: 0;
}

/* ─── Navigation Buttons ─── */
.form-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px; padding-top: 32px;
    border-top: 1px solid var(--am-border);
}
.btn-prev, .btn-next, .btn-submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 8px;
    font-family: var(--font-ui); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; border: none; outline: none;
}
.btn-prev {
    background: transparent; color: var(--am-text-muted);
    border: 1.5px solid var(--am-border);
}
.btn-prev:hover { border-color: var(--am-text-muted); color: var(--am-text); }
.btn-next {
    background: var(--am-primary); color: var(--am-white); margin-left: auto;
}
.btn-next:hover {
    background: #3a9fd8; transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(77, 178, 236, 0.25);
}
.btn-next .arrow { transition: transform 0.3s ease; }
.btn-next:hover .arrow { transform: translateX(3px); }
.btn-submit {
    background: var(--am-success); color: var(--am-white); margin-left: auto;
}
.btn-submit:hover {
    background: #00b873; transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 208, 132, 0.25);
}
.btn-submit.loading { pointer-events: none; opacity: 0.7; }
.btn-submit.loading::after {
    content: ''; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-left: 8px;
}

/* ─── Success Screen ─── */
.success-screen {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center;
    padding: 120px 24px 80px;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 208, 132, 0.06) 0%, transparent 50%),
        var(--am-dark);
}
.success-content {
    text-align: center; max-width: 520px;
    animation: fadeInUp 0.8s ease-out;
}
.success-icon { margin-bottom: 28px; }
.success-content h2 {
    font-family: var(--font-display); font-size: 36px; font-weight: 700;
    color: var(--am-white); margin-bottom: 16px;
}
.success-content p {
    font-size: 16px; color: var(--am-text-muted); line-height: 1.8;
    margin-bottom: 40px;
}
.btn-back-site {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px;
    background: var(--am-card); border: 1.5px solid var(--am-border);
    color: var(--am-text); border-radius: 8px; text-decoration: none;
    font-family: var(--font-ui); font-size: 14px; font-weight: 500;
    transition: all 0.3s ease;
}
.btn-back-site:hover { border-color: var(--am-primary); color: var(--am-primary); }

/* ─── Footer ─── */
.site-footer {
    background: var(--am-darker);
    border-top: 1px solid var(--am-border);
    padding: 32px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-logo {
    font-family: var(--font-display); font-size: 20px; font-weight: 700;
    color: var(--am-white); text-decoration: none; letter-spacing: 1px;
}
.footer-copy { font-size: 12px; color: var(--am-text-dim); margin-top: 8px; }

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .language-btn { padding: 24px 36px; min-width: 140px; }
    .lang-flag { font-size: 36px; }
    .welcome-content h1 { font-size: 28px; }
    .welcome-text { font-size: 15px; }
    .welcome-meta { flex-direction: column; gap: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr; }
    .form-container { padding: 90px 16px 40px; }
    .step-circle { width: 32px; height: 32px; font-size: 12px; }
    .step-label { font-size: 9px; }
    .progress-line { max-width: 36px; }
    .step-header h2 { font-size: 24px; }
    .step-number { font-size: 40px; }
    .question-text { font-size: 16px !important; }
    .btn-prev, .btn-next, .btn-submit { padding: 12px 24px; font-size: 14px; }
    .logo-title { font-size: 22px; }
}
@media (max-width: 480px) {
    .language-buttons { flex-direction: column; align-items: center; }
    .language-btn { width: 100%; max-width: 240px; }
    .progress-line { max-width: 24px; }
}
