/* ============= FORM HERO SECTION ============= */
.form-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.form-hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.form-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ============= FORM SECTION ============= */
.form-section {
    padding: 4rem 2rem;
    position: relative;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
}

.repair-form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ============= FORM SECTION WRAPPER ============= */
.form-section-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.form-section-icon {
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* ============= FORM GRID ============= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* ============= FORM LABELS ============= */
.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============= FORM INPUTS ============= */
.form-input,
.form-textarea,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    color: #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

/* ============= FORM TEXTAREA ============= */
.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

/* ============= FORM ERROR ============= */
.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.4rem;
    display: none;
    animation: slideIn 0.2s ease;
}

.form-error.show {
    display: block;
}

/* ============= CHECKBOX GROUP ============= */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-label:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.checkbox-label span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ============= PRIORITY GROUP ============= */
.priority-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.priority-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.priority-label:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.form-radio {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #6366f1;
    flex-shrink: 0;
}

.priority-label input:checked {
    accent-color: #8b5cf6;
}

.priority-label input:checked + .priority-content {
    color: #ffffff;
}

.priority-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.priority-title {
    font-weight: 600;
    font-size: 1rem;
}

.priority-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.priority-label input:checked ~ .priority-content .priority-desc {
    color: #a5b4fc;
}

/* ============= FILE UPLOAD ============= */
.file-upload {
    position: relative;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-color: #6366f1;
}

.file-icon {
    font-size: 2rem;
}

.file-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.preview-item:hover .preview-remove {
    opacity: 1;
}

/* ============= FORM ACTIONS ============= */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.form-submit-btn,
.form-cancel-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

.form-submit-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.form-submit-btn:active {
    transform: translateY(-1px);
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1.5px solid rgba(99, 102, 241, 0.3);
    text-decoration: none;
}

.form-cancel-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 20px;
    height: 20px;
}

.spinner .path {
    stroke: #ffffff;
    stroke-linecap: round;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============= SUCCESS MESSAGE ============= */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 500px;
    animation: slideInUp 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 auto 1rem;
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.success-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= RESPONSIVE - Tablet ============= */
@media (max-width: 768px) {
    .form-hero {
        min-height: 200px;
        padding: 2rem 1.5rem;
    }

    .form-hero-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .form-hero-subtitle {
        font-size: 1rem;
    }

    .form-section {
        padding: 2.5rem 1.5rem;
    }

    .repair-form {
        gap: 2rem;
    }

    .form-section-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .form-section-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .form-section-title {
        font-size: 1.15rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem 0.85rem;
        font-size: 0.95rem;
    }

    .form-textarea {
        min-height: 100px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .priority-group {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        justify-content: stretch;
    }

    .form-submit-btn,
    .form-cancel-btn {
        width: 100%;
        min-width: auto;
    }

    .success-content {
        padding: 1.75rem;
        border-radius: 16px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .success-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .success-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* ============= RESPONSIVE - Mobile ============= */
@media (max-width: 480px) {
    .form-hero {
        min-height: 150px;
        padding: 1.5rem 1rem;
    }

    .form-hero-title {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: 0.5rem;
    }

    .form-hero-subtitle {
        font-size: 0.95rem;
    }

    .form-section {
        padding: 1.5rem 1rem;
    }

    .repair-form {
        gap: 1.5rem;
    }

    .form-section-wrapper {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .form-section-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        gap: 0.75rem;
    }

    .form-section-icon {
        font-size: 1.5rem;
    }

    .form-section-title {
        font-size: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.7rem 0.75rem;
        font-size: 0.9rem;
    }

    .form-textarea {
        min-height: 80px;
    }

    .checkbox-group {
        gap: 0.75rem;
    }

    .checkbox-label {
        padding: 0.65rem 0.75rem;
    }

    .checkbox-label span {
        font-size: 0.9rem;
    }

    .priority-label {
        padding: 1rem;
        gap: 0.75rem;
    }

    .priority-title {
        font-size: 0.95rem;
    }

    .priority-desc {
        font-size: 0.8rem;
    }

    .file-label {
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .file-icon {
        font-size: 1.5rem;
    }

    .file-text {
        font-size: 0.85rem;
    }

    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .preview-item {
        width: 60px;
        height: 60px;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .form-submit-btn,
    .form-cancel-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .success-message {
        padding: 1.25rem;
    }

    .success-content {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .success-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .success-text {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}