/* ====== CONTAINER ====== */
.auto-parts-form-container {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(135deg, #8B0000 0%, #000000 50%, #8B0000 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3), 0 15px 35px rgba(0, 0, 0, 0.4);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    border: 2px solid #8B0000;
}

/* shimmer effect */
.auto-parts-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ====== TITLE ====== */
.auto-parts-form-title {
    text-align: center;
    margin-bottom: 18px;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auto-parts-form-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FFFFFF, #8B0000, #FFFFFF);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

/* ====== INNER FORM BOX ====== */
.auto-parts-form {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* ====== ROWS (LABEL + FIELD INLINE) ====== */
.auto-parts-form .form-row {
    display: flex;
    align-items: center;
    gap: 8px;              /* space between label & field */
    margin-bottom: 8px;
}

.auto-parts-form .form-group-full {
    display: block;
    margin-bottom: 10px;
}

/* LABELS */
.auto-parts-form label {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;   /* YEAR * stays on one line */
}

/* required star */
.auto-parts-form .required::after {
    content: " *";
    color: #FF4444;
    font-weight: bold;
}

/* FIELDS */
.auto-parts-form select,
.auto-parts-form input,
.auto-parts-form textarea {
    flex: 1 1 auto;
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #333333;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #FFFFFF;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    height: 36px;
}

.auto-parts-form textarea {
    height: 52px;
    min-height: 52px;
    resize: vertical;
}

.auto-parts-form select:focus,
.auto-parts-form input:focus,
.auto-parts-form textarea:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.3), inset 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* dropdown arrow */
.auto-parts-form select {
    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='%238B0000' stroke-width='3' 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 12px center;
    background-size: 14px;
    background-color: #1a1a1a;
}

/* errors */
.auto-parts-form .error {
    border-color: #FF4444 !important;
    background: linear-gradient(135deg, #2a1a1a 0%, #1a1a1a 100%);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2), inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.auto-parts-form .error-message {
    color: #FF4444;
    font-size: 11px;
    margin-top: 4px;
    display: none;
    font-weight: 600;
}

/* ====== BUTTON ====== */
.auto-parts-form .submit-btn {
    background: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 800;
    display: block;
    margin: 14px auto 8px;
    width: 170px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #8B0000 0%, #000000 50%, #8B0000 100%);
}

.auto-parts-form .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.3), transparent);
    transition: left 0.6s;
    z-index: -1;
}

.auto-parts-form .submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: -2;
    border-radius: 4px;
}

.auto-parts-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.5);
    border-color: #8B0000;
    background-image: linear-gradient(135deg, #A00000 0%, #000000 50%, #A00000 100%);
}

.auto-parts-form .submit-btn:hover::before {
    left: 100%;
}

/* ====== CONSENT TEXT ====== */
.auto-parts-form .consent {
    text-align: center;
    margin-top: 8px;
    font-size: 10px;
    color: #CCCCCC;
    line-height: 1.4;
    background: rgba(26, 26, 26, 0.8);
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid #8B0000;
    border-right: 1px solid #333333;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

/* ====== MOBILE: stack label above field ====== */
@media (max-width: 768px) {
    .auto-parts-form-container {
        max-width: 100%;
        padding: 20px;
        margin: 15px;
    }

    .auto-parts-form {
        padding: 20px;
    }

    .auto-parts-form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .auto-parts-form label {
        margin-bottom: 2px;
    }
}

/* force white title text */
.auto-parts-form-container h2.auto-parts-form-title {
    color: #FFFFFF !important;
}
