:root {
    --primary: #c2183e;
    --primary-light: #d6335a;
    --primary-dark: #910e2b;
    --secondary: #2C3E50;
    --bg-color: #f4f6f9;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e6ed;
    --success: #28a745;
    --success-hover: #218838;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4f6f9 0%, #e0e6ed 100%);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 50px;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Glass Header */
.glass-header {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    animation: slideDown 0.6s ease-out forwards;
}

.logo-container .logo {
    height: 70px;
    margin-right: 20px;
}

.header-text h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.header-text p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
}

/* Main Form Area */
.form-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: var(--border-color);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(194, 24, 62, 0.4);
}

.step.completed .step-circle {
    background: var(--secondary);
    color: #fff;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 15px;
    position: relative;
    top: -10px;
}

/* Form Sections */
.form-section {
    display: none;
    animation: slideInRight 0.5s forwards;
}
.form-section.active {
    display: block;
}

.form-section h2 {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 5px;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
    padding-bottom: 5px;
}

.sub-heading {
    font-size: 18px;
    color: var(--secondary);
    margin: 20px 0 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Form Elements */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    grid-column: span 2;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
    background: #fff;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(194, 24, 62, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
}

.radio-group label {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Utility */
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(194,24,62,0.3);
}

.btn-secondary {
    background: #e0e6ed;
    color: var(--secondary);
}
.btn-secondary:hover {
    background: #d1d8e0;
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: var(--success-hover);
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

/* Preview Area */
.preview-card {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.preview-item {
    margin-bottom: 15px;
}

.preview-item span.label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.preview-item span.value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal h3 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media(max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .input-group.full-width { grid-column: span 1; }
    .stepper { flex-wrap: wrap; gap: 10px; }
    .step-line { display: none; }
}

/* ── Success Modal ─────────────────────────────────────────── */
.success-modal {
    max-width: 480px !important;
    padding: 40px 36px !important;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(40,167,69,0.35);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.success-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px !important;
}

.app-number-display {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    background: rgba(194, 24, 62, 0.07);
    border: 2px dashed var(--primary-light);
    border-radius: 10px;
    padding: 12px 24px;
    display: inline-block;
    margin: 6px auto 12px;
}

.success-note {
    font-size: 12px !important;
    color: var(--text-muted);
    margin-bottom: 24px !important;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Glass Footer ─────────────────────────────────────────── */
.glass-footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.4);
    animation: fadeIn 0.8s ease-out forwards;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-circle {
    background-color: var(--primary);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(194, 24, 62, 0.2);
}

.item-content h3 {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.item-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-content a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .glass-footer {
        padding: 20px;
    }
}
