/* Service Request Form Styles */

/* CSS Variables for this page */
:root {
    --gradient-primary: linear-gradient(135deg, hsl(250, 69%, 48%) 0%, hsl(248, 69%, 55%) 25%, hsl(246, 69%, 60%) 75%, hsl(244, 69%, 65%) 100%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --card: hsl(0, 0%, 100%);
    --primary: hsl(250, 69%, 48%);
    --primary-rgb: 84, 46, 145;
    --border: hsl(262, 15%, 91%);
    --muted-foreground: hsl(250, 8%, 46%);
    --radius: 0.75rem;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 20px -4px hsl(250, 69%, 48%, 0.1);
}

/* Hero Section */
.request-hero {
    margin-top: 4rem;
    background: var(--gradient-primary);
    padding: 5rem 0 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.request-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Add decorative elements */
.request-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60rem;
    height: 60rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.plan-summary {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.plan-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.plan-summary .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
}

.plan-summary .description {
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Section */
.request-form-section {
    padding: 4rem 0;
    background: var(--background);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.form-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Form Styles */
.request-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

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

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Checkbox and Radio Styles */
.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
}

/* Submit Button */
.form-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: var(--primary);
}

.progress-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--muted-foreground);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.progress-step.active .progress-circle {
    background: var(--primary);
    color: white;
}

.progress-step.completed .progress-circle {
    background: #10b981;
    color: white;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-align: center;
}

.progress-step.active .progress-label {
    color: var(--primary);
}

.progress-step.completed .progress-label {
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .request-hero {
        margin-top: calc(85px + 3rem);
        padding: 4rem 0 3rem;
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .plan-summary {
        padding: 1.5rem;
        margin-top: 2rem;
        max-width: 100%;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .plan-summary h3 {
        font-size: 1.3rem;
    }
    
    .plan-summary .price {
        font-size: 1.8rem;
    }
    
    .form-container {
        margin: 0 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section-title {
        font-size: 1.2rem;
    }
    
    .progress-step {
        font-size: 0.8rem;
    }
    
    .progress-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .request-hero {
        margin-top: calc(70px + 2rem);
        padding: 3rem 0 2rem;
        min-height: 45vh;
    }
    
    .request-hero::after {
        margin-top: 4rem;
        width: 40rem;
        height: 40rem;
        top: -40%;
        right: -30%;
    }
    
    .hero-content {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .plan-summary {
        padding: 1.25rem;
        margin-top: 1.5rem;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .plan-summary h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .plan-summary .price {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .plan-summary .description {
        font-size: 0.9rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .request-form {
        padding: 1.5rem;
    }
    
    .form-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Success Message */
.success-message {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    font-size: 1.2rem;
}

/* Error Message */
.error-message-container {
    background: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message-container i {
    font-size: 1.2rem;
}
