/* ============================================
   Repairs & Diagnostics Page Styles
   ============================================ */

.repairs-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* --- Hero Section --- */
.repairs-hero {
    text-align: center;
    padding: 20px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.repairs-hero h1 {
    font-size: 3.5rem;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
}

.repairs-hero p {
    color: var(--text-secondary);
    max-width: 650px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.badge-pill {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.05);
}

/* --- Form Container --- */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.repair-card {
    padding: 40px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--accent-cyan);
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 20px;
}

.divider-horizontal {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 30px 0;
}

/* --- Form Inputs --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.custom-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.custom-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px var(--glass-border);
    background: var(--bg-primary);
}

.custom-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-input.has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.custom-input.has-error::placeholder {
    color: rgba(239, 68, 68, 0.6);
}

textarea.custom-input {
    resize: vertical;
    min-height: 100px;
}

/* Custom Select Wrapper for Arrows */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* --- Upload Dropzone --- */
.upload-dropzone {
    width: 100%;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: var(--glass-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    opacity: 0.8;
}

.upload-dropzone p {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-weight: 500;
}

.text-cyan { color: var(--accent-cyan); }

.upload-dropzone small {
    color: var(--text-muted);
}

/* File Preview Badge */
#media-preview-container {
    margin-top: 15px;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.text-red { color: #ef4444; }

/* --- Actions & Utilities --- */
.form-actions {
    display: flex;
    justify-content: space-evenly;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .repair-card { padding: 25px 20px; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; justify-content: center; }
}