:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --input-focus: #818CF8;
    --error-color: #EF4444;
}

.email-wizard-container {
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--bg-gradient);
    padding: 3px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.email-wizard-container * {
    box-sizing: border-box;
}

#email-wizard-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 40px;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
}

.wizard-header h2 {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.wizard-progress {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    width: 80%;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.4s ease-in-out;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.wizard-step.active {
    display: block;
}

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

.wizard-step h3 {
    color: var(--text-main);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.form-group input.error {
    border-color: var(--error-color);
    background: #FEF2F2;
}

.form-group input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.radio-group label, .checkbox-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.radio-group label:hover, .checkbox-group label:hover {
    background: #F3F4F6;
    border-color: var(--input-focus);
}

.btn-next, .btn-prev, .btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-next, .btn-submit {
    background: var(--primary-color);
    color: white;
    float: right;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.btn-next:hover, .btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(79, 70, 229, 0.4);
}

.btn-prev {
    background: #E5E7EB;
    color: var(--text-main);
    float: left;
}

.btn-prev:hover {
    background: #D1D5DB;
}

/* Result Card Styling */
.result-card {
    text-align: center;
    padding: 20px;
}

.result-icon {
    width: 60px;
    height: 60px;
    background: #10B981;
    color: white;
    font-size: 30px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.result-card h3 {
    border-bottom: none;
}

.service-box, .price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.price-box {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
}

.service-box h2, .price-box h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.summary-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    background: #F3F4F6;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Loader */
.loader-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-top: 50px;
}

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

/* Clearfix for buttons */
.wizard-step::after {
    content: "";
    clear: both;
    display: table;
}
