/**
 * Design Request Stylesheet
 * Custom styles for the responsive artwork submission form
 */

/* ─── CONTAINER & CARDS ─── */
.design-req-section {
    background: var(--ink);
    padding: 60px 28px 100px;
    position: relative;
}

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

.step-card {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    display: none; /* Controlled by JS */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-card h3 i {
    color: var(--gold);
}

.step-card > p {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ─── PROGRESS BAR ─── */
.progress-container {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-50%);
    z-index: 1;
}

.step-indicator-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
}

.step-dot {
    width: 38px;
    height: 38px;
    background: var(--surface);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #666;
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

.step-dot.active {
    border-color: var(--gold);
    color: var(--gold-light);
    background: var(--surface-2);
    box-shadow: 0 0 15px rgba(227, 186, 26, 0.3);
}

.step-dot.completed {
    border-color: var(--gold);
    color: #0d0d0d;
    background: var(--gold);
}

.step-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.step-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
    font-weight: 600;
    width: 80px;
    text-align: center;
    transition: color 0.3s;
}

.step-label.active {
    color: #fff;
}

.step-label.completed {
    color: var(--gold);
}

/* ─── FORM GRID & FIELDS ─── */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

.form-group label span.req {
    color: var(--gold);
    margin-left: 3px;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    width: 100%;
}

.form-control::placeholder {
    color: #444;
}

.form-control:focus {
    border-color: rgba(227, 186, 26, 0.5);
    background: rgba(227, 186, 26, 0.03);
    box-shadow: 0 0 10px rgba(227, 186, 26, 0.08);
}

.form-control.is-invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.03);
}

.invalid-feedback {
    color: #f44336;
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3ba1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
}

select.form-control option {
    background: #181818;
    color: #ccc;
}

/* ─── UPLOAD ZONE ─── */
.upload-dropzone {
    border: 2px dashed rgba(227, 186, 26, 0.25);
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.upload-dropzone.dragover {
    border-color: var(--gold-light);
    background-color: rgba(227, 186, 26, 0.06);
}

.upload-dropzone i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.upload-dropzone:hover i {
    transform: translateY(-4px);
}

.upload-dropzone h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.upload-dropzone p {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 0;
}

.upload-dropzone span {
    color: var(--gold);
    text-decoration: underline;
}

/* ─── FILE PREVIEWS ─── */
.file-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 16px;
    animation: slideIn 0.3s ease forwards;
}

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

.file-preview {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview i {
    font-size: 1.4rem;
    color: var(--gold);
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-size-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #666;
}

.file-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.file-progress-bar {
    height: 100%;
    background: var(--gold);
    width: 100%;
    transition: width 0.3s;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 6px;
}

.remove-file-btn:hover {
    color: #ff4b2b;
}

/* ─── NAVIGATION BUTTONS ─── */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 16px;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 28px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-next, .btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #a07828 100%);
    color: #0d0d0d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 15px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 186, 26, 0.3);
}

.btn-next:disabled, .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ─── MOBILE STICKY BUTTON ─── */
@media (max-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .step-card {
        padding: 24px 18px;
    }
    
    .progress-container {
        padding: 16px 20px;
    }
    
    /* Sticky mobile nav bar at bottom */
    .nav-buttons.sticky-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 16px 20px;
        margin: 0;
        z-index: 1000;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    }
    
    .design-req-section {
        padding-bottom: 120px; /* Space for sticky bar */
    }
}
