:root {
    --primary-color: #7d3bff;
    --primary-hover: #6a30e0;
    --background-color: #1f2937;  /* Dark blue-gray */
    --surface-color: #374151;     /* Lighter blue-gray */
    --text-color: #f3f4f6;        /* Light gray */
    --text-secondary: #9ca3af;    /* Medium gray */
    --border-color: #4b5563;      /* Medium blue-gray */
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --star-color: #ffd700;
    --card-background: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

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

/* Common button styles */
.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: var(--surface-color);
    color: var(--text-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Common tag/badge styles */
.tag {
    display: inline-block;
    background: rgba(125, 59, 255, 0.15);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

/* Common card styles */
.card {
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Common heading styles */
h1, h2, h3 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 28px;
    margin-bottom: 24px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* Common text styles */
.text-secondary {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
}

.progress-bar {
    width: 100%;
    height: 6px;
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
}

.progress-step {
    flex: 1;
    height: 100%;
    background-color: var(--surface-color);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

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

.quiz-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

/* Remove the 3-column layout for relationship status */
#step2 .options {
    grid-template-columns: repeat(2, 1fr);
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    min-height: 160px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.option-btn i {
    font-size: 2.5em;
    margin-bottom: 16px;
    color: var(--primary-color);
    background: rgba(125, 59, 255, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 16px;
}

.option-btn span {
    font-size: 1.1em;
    font-weight: 500;
}

.option-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 59, 255, 0.25);
}

.option-btn:hover i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.start-btn, .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-btn:hover, .start-btn:hover, .submit-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.option-btn:hover i {
    color: white;
}

.start-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    margin: 0 auto;
}

#email-form {
    margin-top: 30px;
}

input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1em;
    background: var(--surface-color);
    color: var(--text-color);
}

input[type="email"]::placeholder {
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

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

/* Improve button active state */
.option-btn:active, .start-btn:active, .submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Add media query adjustments */
@media (max-width: 768px) {
    .options {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 12px;
    }

    #step2 .options {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-btn {
        min-height: 120px;
        padding: 16px;
    }

    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }
    
    .date-selects {
        gap: 8px;
        padding: 0 12px;
    }
    
    .date-selects select {
        padding: 8px;
        font-size: 0.9rem;
    }

    #month {
        max-width: 140px;
    }

    #day {
        max-width: 80px;
    }

    #year {
        max-width: 100px;
    }

    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.3em;
    }
}

.date-input {
    max-width: 600px;
    margin: 30px auto;
}

.date-selects {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 20px;
}

.date-selects select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 12px;
}

/* Specific widths for each select */
#month {
    flex: 3;  /* Month needs more space for full names */
    max-width: 160px;
}

#day {
    flex: 1;  /* Day needs less space - just 2 digits */
    max-width: 100px;
}

#year {
    flex: 2;  /* Year needs medium space - 4 digits */
    max-width: 120px;
}

.date-selects select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.continue-btn {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
}

.continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Password page styles */
.password-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px 0;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.password-input {
    width: 100%;
    padding: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-color);
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.requirement i {
    color: var(--text-secondary);
}

.requirement.valid {
    color: var(--text-color);
}

.requirement.valid i {
    color: var(--success-color);
}

/* Update subtitle style if not already defined */
.subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
} 