:root {
    --primary-color: #EC407A;
    /* Pink 400 */
    --primary-gradient: linear-gradient(135deg, #EC407A 0%, #D81B60 100%);
    --secondary-color: #8E24AA;
    --bg-gradient: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #424242;
    --border-color: #F06292;
    /* Light Pink border */
    --input-bg: #FFF0F5;
    /* Lavender Blush */
    --transition-speed: 0.3s;
    --shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
}

/* Font definitions are in the template using {% static %} tags */
/* This ensures proper path resolution in Django */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    /* display: flex; */
    /* justify-content: center; */
    align-items: center;
    min-height: 100vh;
    /* padding: 20px; */
    font-family: "IRANSansX" !important;
}

.container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: var(--shadow);
    padding: 35px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.step {
    display: none;
    animation: fadeIn var(--transition-speed) ease-in-out;
}

.step.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    margin-bottom: 25px;
    color: #D81B60;
    text-align: center;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

h2 i {
    font-size: 1.2em;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #616161;
    text-align: center;
}

.terms-box,
.review-box {
    background: #FFF5F8;
    /* Very light pink */
    padding: 20px;
    border-radius: 15px;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 25px;
    border: 1px solid #F8BBD0;
    font-size: 0.95rem;
    color: #555;
}

.review-box ul {
    list-style: none;
}

.review-box li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #F48FB1;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.review-box li strong {
    color: #C2185B;
}

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

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #880E4F;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid transparent;
    background-color: var(--input-bg);
    border-radius: 12px;
    font-size: 16px;
    transition: all var(--transition-speed);
    color: #333;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(236, 64, 122, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    background: #FFF0F5;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

.checkbox-group:hover {
    background: #FCE4EC;
}

.checkbox-group input {
    margin-left: 12px;
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
}

.btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #E0E0E0;
    color: #9E9E9E;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #F48FB1;
    color: #D81B60;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #FCE4EC;
    box-shadow: none;
}

.hidden {
    display: none;
}

.row {
    display: flex;
    gap: 15px;
}

.col {
    flex: 1;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #F8BBD0;
    border-radius: 10px;
    margin-bottom: 30px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 10%;
    /* Initial */
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #F48FB1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EC407A;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .card {
        padding: 25px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 14px;
    }
}