:root {
    --primary: #029FD4;
    --secondary: #5C9A4F;
    --background: #f8f9fa;
    --text: #333333;
    --light-text: #6b7c93;
    --border: #e0e0e0;
    --error: #dc3545;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    font-size: 16px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
}

.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    margin-right: 10px;
    flex: 0 0 auto;
}

.progress-bar {
    flex: 1 1 auto;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--secondary);
    width: 25%;
    transition: width 0.3s ease;
}

.question {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.subtext {
    font-size: 16px;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 20px;
}

.input-container {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

input, select {
    width: 100%;
    padding: 15px 15px 15px 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: var(--secondary);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--light-text);
    z-index: 1;
}

.error-message {
    color: var(--error);
    font-size: 14px;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    display: none;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 10;
    display: none;
    max-height: 150px;
    overflow-y: auto;
}

.suggestion {
    padding: 10px 15px;
    cursor: pointer;
}

.suggestion:hover, .suggestion.selected {
    background-color: var(--background);
}

.cta-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: #4a8a3f;
}

.cta-button::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(92, 154, 79, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(92, 154, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 154, 79, 0); }
}

.gender-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.gender-option {
    background-color: var(--background);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gender-option:hover,
.gender-option.selected {
    background-color: var(--background);
    border-color: var(--secondary);
}

.gender-option i {
    margin-right: 10px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: var(--light-text);
    cursor: pointer;
    z-index: 1;
}

.footer-links {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 16px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
}

.password-strength {
    font-size: 12px;
    color: var(--light-text);
    text-align: left;
    margin-top: 5px;
    transition: opacity 0.3s ease;
    opacity: 0;
    position: absolute;
    left: 0;
    bottom: -20px;
    width: 100%;
}

.password-strength.valid {
    color: var(--secondary);
}

.password-strength i {
    margin-right: 5px;
}

input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus {
    color: #555; 
    background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .question {
        font-size: 20px;
    }
    
    .subtext {
        font-size: 14px;
    }
    
    input, select {
        font-size: 16px;
        padding: 12px 12px 12px 35px;
    }
    
    .input-icon {
        left: 12px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 12px;
    }
}