/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 300;
}

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Calculator Container */
.calculator-container {
    background: #111111;
    border: 1px solid #333;
    border-radius: 0;
    padding: 60px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

.form-step h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Question Groups */
.question-group {
    margin-bottom: 40px;
}

.question-group label {
    display: block;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.question-group input[type="text"],
.question-group input[type="email"],
.question-group select {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #333;
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #000000;
    color: #ffffff;
    font-weight: 300;
}

.question-group input[type="text"]:focus,
.question-group input[type="email"]:focus,
.question-group select:focus {
    outline: none;
    border-color: #ffffff;
    background: #111111;
    box-shadow: 0 0 0 1px #ffffff;
}

.question-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.question-group select option {
    background: #000000;
    color: #ffffff;
    padding: 10px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    gap: 20px;
}

.nav-btn {
    padding: 18px 40px;
    border: 1px solid #333;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
    background: #000000;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: 140px;
}

.prev-btn {
    border-color: #333;
    color: #999;
}

.prev-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: #111111;
}

.next-btn {
    border-color: #ffffff;
    color: #ffffff;
    margin-left: auto;
}

.next-btn:hover {
    background: #ffffff;
    color: #000000;
}

.submit-btn {
    border-color: #ffffff;
    color: #ffffff;
    font-size: 1rem;
    padding: 20px 50px;
    background: #ffffff;
    color: #000000;
}

.submit-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

/* Progress Bar */
.progress-container {
    margin-top: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: #333;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #ffffff;
    transition: width 0.5s ease;
    width: 16.67%;
}

.progress-text {
    color: #999;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Accuracy Calculation Section */
.accuracy-container {
    background: #111111;
    border: 1px solid #333;
    border-radius: 0;
    padding: 60px;
    margin-top: 40px;
    text-align: center;
}

.accuracy-container h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.accuracy-meter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.accuracy-bar {
    width: 300px;
    height: 20px;
    background: #333;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444 0%, #ffaa00 50%, #00ff00 100%);
    transition: width 1s ease;
    width: 0%;
    border-radius: 0;
}

.accuracy-percentage {
    font-size: 2rem;
    font-weight: 300;
    color: #ffffff;
    min-width: 80px;
}

.accuracy-description {
    text-align: center;
    color: #cccccc;
}

.accuracy-description p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.accuracy-description span {
    color: #ffffff;
    font-weight: 400;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #000000;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #333;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

/* Soul Match Technique */
.soul-match-technique {
    background: #000000;
    padding: 60px;
    border: 1px solid #333;
    text-align: center;
    position: relative;
}

.soul-match-technique h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.technique-content {
    display: grid;
    gap: 40px;
    margin-bottom: 50px;
}

.technique-section {
    background: #111111;
    padding: 40px;
    border: 1px solid #333;
    text-align: left;
}

.technique-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.technique-section p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.7;
    font-weight: 300;
}

.technique-footer {
    background: #111111;
    padding: 30px;
    border: 1px solid #333;
}

.technique-footer p {
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .calculator-container {
        padding: 40px 20px;
    }
    
    .form-step h2 {
        font-size: 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .soul-match-technique {
        padding: 40px 20px;
    }
    
    .soul-match-technique h2 {
        font-size: 1.5rem;
    }
    
    .technique-section {
        padding: 30px 20px;
    }
    
    .accuracy-container {
        padding: 40px 20px;
    }
    
    .accuracy-container h2 {
        font-size: 1.5rem;
    }
    
    .accuracy-meter {
        flex-direction: column;
        gap: 20px;
    }
    
    .accuracy-bar {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .calculator-container {
        padding: 30px 15px;
    }
    
    .form-step h2 {
        font-size: 1.3rem;
    }
    
    .question-group label {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        padding: 15px 30px;
        font-size: 0.8rem;
    }
    
    .accuracy-container {
        padding: 30px 15px;
    }
    
    .accuracy-container h2 {
        font-size: 1.3rem;
    }
}
