/* ================================================================
   ARTINU — SUBMIT.CSS
   Photographer Submission Form — Premium Enhancements
   ================================================================ */

/* ── Progress Bar ─────────────────────────────────────────── */
.form-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.05);
    z-index: 9999;
}
.form-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #EED786, #D4AF37);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    transition: width 0.5s ease;
    width: 0%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Submit Hero ──────────────────────────────────────────── */
.submit-hero {
    padding: 10rem 5% 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}
.submit-hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.submit-hero-content {
    max-width: 680px;
    animation: fadeUp 0.7s ease both;
}
.submit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(212,175,55,0.06);
}
.submit-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
.submit-hero h1 em {
    color: var(--primary-color);
    font-style: italic;
}
.submit-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}
.submit-hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    animation: fadeUp 0.7s 0.15s ease both;
}
.stat-pill { text-align: center; }
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ── Layout ───────────────────────────────────────────────── */
.submit-section {
    padding: 4rem 5% 6rem;
}
.submit-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.submit-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2rem;
}
.sidebar-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: default;
}
.sidebar-step.active,
.sidebar-step.done {
    opacity: 1;
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.3s;
}
.sidebar-step.active .step-circle {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212,175,55,0.08);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}
.sidebar-step.done .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-color);
}
.step-info { display: flex; flex-direction: column; }
.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.step-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}
.step-connector {
    width: 2px;
    height: 28px;
    background: var(--border-color);
    margin-left: 15px;
}
.sidebar-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(212,175,55,0.04);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 8px;
}
.sidebar-note p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Form Sections ────────────────────────────────────────── */
.submit-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.form-section {
    padding: 2.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.5s ease both;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.form-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transition: height 0.4s ease;
    border-radius: 3px 0 0 0;
}
.form-section:focus-within::before {
    height: 100%;
}
.form-section:focus-within {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.08), 0 8px 32px rgba(0,0,0,0.3);
}
.form-section:nth-child(1) { animation-delay: 0.05s; }
.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.15s; }
.form-section:nth-child(4) { animation-delay: 0.2s; }

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.section-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(212,175,55,0.2);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.04em;
}
.form-section-header h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.form-section-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ── Grid ─────────────────────────────────────────────────── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ── Field Groups ─────────────────────────────────────────── */
.field-group {
    margin-bottom: 1.5rem;
    position: relative;
}
.field-group:last-child { margin-bottom: 0; }

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}
.required { color: var(--primary-color); }
.field-hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    margin-top: -0.25rem;
}

.field-wrap {
    position: relative;
}
.field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}
.textarea-wrap .field-icon { top: 1rem; transform: none; }

.field-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    -webkit-appearance: none;
}
.field-input::placeholder { color: rgba(163,163,163,0.5); }
.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12), 0 0 20px rgba(212,175,55,0.05);
    background: rgba(212,175,55,0.02);
}
.field-input:focus + .field-icon,
.field-wrap:focus-within .field-icon {
    color: var(--primary-color);
}
.field-input.invalid {
    border-color: #E05C5C;
    box-shadow: 0 0 0 3px rgba(224,92,92,0.1);
}

.field-textarea {
    padding-top: 1rem;
    padding-bottom: 1rem;
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}
.field-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.field-select option {
    background-color: var(--surface-color);
    color: var(--text-primary);
}
.char-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.4rem;
}

/* ── Error ────────────────────────────────────────────────── */
.field-error {
    display: none;
    font-size: 0.78rem;
    color: #E05C5C;
    margin-top: 0.4rem;
    animation: fadeUp 0.2s ease;
}
.field-error.visible { display: block; }

/* ── Category Chips ───────────────────────────────────────── */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: transparent;
}
.chip input[type="checkbox"] { display: none; }
.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212,175,55,0.05);
}
.chip:has(input:checked) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212,175,55,0.1);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(212,175,55,0.2);
}

/* ── Upload Zone ──────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
    overflow: hidden;
    margin-bottom: 1rem;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(212,175,55,0.03);
}
.upload-zone-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    gap: 0.6rem;
}
.upload-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    background: rgba(212,175,55,0.05);
    transition: all 0.3s;
}
.upload-zone:hover .upload-icon-ring {
    border-color: var(--primary-color);
    background: rgba(212,175,55,0.1);
    transform: scale(1.05);
}
.upload-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}
.upload-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.upload-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.upload-req {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ── Photo Previews ───────────────────────────────────────── */
.photo-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.preview-card {
    animation: fadeUp 0.3s ease both;
}
.preview-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    transition: border-color 0.3s;
}
.preview-img-wrap:hover {
    border-color: var(--primary-color);
}
.preview-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.preview-remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}
.preview-img-wrap:hover .preview-remove {
    opacity: 1;
}
.preview-remove:hover {
    background: #E05C5C;
}
.preview-caption {
    padding-left: 0.75rem !important;
}

/* ── Submit Footer ────────────────────────────────────────── */
.submit-footer-section {
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(212,175,55,0.03) 100%);
    border-color: rgba(212,175,55,0.2);
}
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 1rem;
    user-select: none;
}
.terms-check input { display: none; }
.terms-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
    margin-top: 2px;
    background: var(--bg-color);
}
.terms-check input:checked + .terms-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.terms-check input:checked + .terms-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-color);
}
.terms-check span:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.gold-link { color: var(--primary-color); }
.gold-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.submit-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ── Submit Button ────────────────────────────────────────── */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    letter-spacing: 0.01em;
}
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}
.btn-submit:hover::before { transform: translateX(100%); }
.btn-submit:active { transform: translateY(0); }
.btn-arrow { transition: transform 0.3s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

.btn-submit.loading .btn-submit-text,
.btn-submit.loading .btn-arrow { opacity: 0; }
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(10,10,10,0.3);
    border-top-color: var(--bg-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
}
.btn-submit.loading { pointer-events: none; }
.btn-submit.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success State ────────────────────────────────────────── */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--surface-color);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.success-state.visible {
    display: flex;
    animation: fadeUp 0.6s ease both;
}
.success-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(212,175,55,0.08);
    border: 2px solid rgba(212,175,55,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: popIn 0.5s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-state h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.success-state p {
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.7;
}
.success-state strong { color: var(--text-primary); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .submit-layout {
        grid-template-columns: 1fr;
    }
    .submit-sidebar {
        position: static;
        display: none;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .submit-hero h1 { font-size: 2.5rem; }
    .submit-hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}
@media (max-width: 560px) {
    .form-section { padding: 1.5rem; }
    .submit-section { padding: 2rem 4% 4rem; }
    .submit-row { flex-direction: column; align-items: stretch; }
    .btn-submit { justify-content: center; width: 100%; }
    .photo-previews { grid-template-columns: 1fr 1fr; }
}
