/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

h1 {
    font-family: 'Mountains of Christmas', cursive;
    color: #cc0000;
    margin-bottom: 15px;
    font-size: 48px;
    text-align: center;
    font-weight: 700;
}

.subheading {
    text-align: center;
    margin-bottom: 0;
    font-size: 18px;
    color: #666;
    max-width: 100%;
    line-height: 1.5;
}

/* Form elements */
.wizard-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.question {
    display: none;
    margin-bottom: 25px;
    position: relative;
}

.question.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in;
}

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

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.wizard-nav button {
    flex: 1;
    max-width: 150px;
}

.progress-container {
    margin: 20px 0;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.nav-button {
    padding: 12px 24px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.textarea-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
}

.textarea-controls {
    position: relative;
    width: 100%;
}

textarea {
    padding: 10px 40px 10px 10px; /* Make room for the clear button */
    box-sizing: border-box;
}

.clear-button {
    position: absolute;
    right: 10px;
    top: 6px; /* Align with textarea top + padding */
}

.clear-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    padding: 0;
    margin-top: 8px;
    flex-shrink: 0;
}

.clear-button:hover {
    background-color: #f0f0f0;
    color: #333;
}

.save-indicator {
    font-size: 12px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
    min-height: 20px;
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.save-indicator.visible {
    opacity: 1;
}

textarea {
    width: 100%;
    min-height: 100px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    max-width: 100%;
    resize: vertical;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.budget-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 150px;
}

@keyframes snowfall {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 500px 500px;
    }
}

.submit-button {
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes glisten {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
}

.submit-button:hover::before,
.submit-button:active::before {
    animation: glisten 1.5s ease-in-out;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
    background: linear-gradient(135deg, #ff6666 0%, #dd0000 100%);
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #27ae60;
}


/* Results page specific */
.summary {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.suggestion {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

