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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom right, #faf5ff, #e9d5ff);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 56rem;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Header Card */
.header-card {
    background: linear-gradient(to bottom right, #ffffff, #faf5ff);
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 4px solid #e9d5ff;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 10;
}

.logo {
    width: 100%;
    max-width: 24rem;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-divider {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.divider-line {
    height: 1px;
    flex: 1;
    max-width: 20rem;
    background: linear-gradient(to right, transparent, #d8b4fe, transparent);
}

.header-subtitle {
    font-size: 0.875rem;
    color: #7c3aed;
    font-weight: 500;
    padding: 0 1rem;
}

.header-instruction {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.75rem;
}

/* Decorative Circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.decorative-circle.top-right {
    width: 8rem;
    height: 8rem;
    background-color: #e9d5ff;
    top: -4rem;
    right: -4rem;
}

.decorative-circle.bottom-left {
    width: 6rem;
    height: 6rem;
    background-color: #e9d5ff;
    bottom: -3rem;
    left: -3rem;
}

.decorative-circle.green {
    background-color: #86efac;
}

/* Progress Card */
.progress-card {
    background: linear-gradient(to bottom right, #ffffff, #faf5ff);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9d5ff;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

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

.step-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #e5e7eb;
    color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-circle.active {
    background: linear-gradient(to bottom right, #7c3aed, #6d28d9);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3), 0 0 0 4px #ddd6fe;
}

.step-circle.completed {
    background: linear-gradient(to bottom right, #4ade80, #16a34a);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.3);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.75rem;
    color: #374151;
    display: none;
}

@media (min-width: 640px) {
    .step-label {
        display: block;
    }
}

.progress-line {
    height: 0.375rem;
    flex: 1;
    margin: 0 0.5rem;
    border-radius: 9999px;
    background-color: #e5e7eb;
    transition: all 0.3s;
}

.progress-line.completed {
    background: linear-gradient(to right, #4ade80, #16a34a);
}

/* Form Card */
.form-card {
    background: linear-gradient(to bottom right, #ffffff, #faf5ff);
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #7c3aed;
}

.form-step {
    display: none;
}

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

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9d5ff;
}

.section-accent {
    width: 0.25rem;
    height: 2rem;
    background-color: #7c3aed;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #581c87;
}

.section-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #581c87;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9d5ff;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background-color: white;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c084fc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: none;
    font-family: inherit;
}

.char-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* Radio Cards */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-card {
    display: block;
    padding: 1.25rem;
    border: 2px solid #e9d5ff;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.radio-card:hover {
    border-color: #c084fc;
    background-color: #faf5ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.radio-card input[type="radio"] {
    position: absolute;
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
}

.radio-card input[type="radio"]:checked+.radio-content {
    color: #581c87;
}

.radio-card:has(input:checked) {
    border-color: #7c3aed;
    background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.2);
    transform: scale(1.02);
}

.radio-content {
    margin-left: 1.75rem;
}

.radio-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.radio-description {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Review Sections */
.review-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-section {
    background: linear-gradient(to bottom right, #faf5ff, #ffffff);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border-left: 4px solid #7c3aed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-section h3 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-step-number {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #7c3aed;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review-item {
    display: flex;
    flex-direction: column;
}

.review-item.full {
    grid-column: 1 / -1;
}

.review-label {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.review-value {
    font-weight: 500;
    color: #111827;
    white-space: pre-wrap;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, #6d28d9, #5b21b6);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: white;
    border: 2px solid #c084fc;
    color: #7c3aed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #faf5ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Success Screen */
.success-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.success-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    max-width: 32rem;
    width: 100%;
    text-align: center;
    border: 4px solid #e9d5ff;
    position: relative;
    overflow: hidden;
}

.success-content {
    position: relative;
    z-index: 10;
}

.success-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(to bottom right, #4ade80, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.4);
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.checkmark {
    color: white;
    width: 3rem;
    height: 3rem;
}

.success-card h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #581c87;
    margin-bottom: 0.75rem;
}

.success-card p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.625;
}

.success-card p strong {
    color: #7c3aed;
    font-weight: 600;
}

.decorative-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.decorative-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #c084fc;
}

.decorative-dots span:nth-child(2),
.decorative-dots span:nth-child(4) {
    background-color: #a855f7;
}

.decorative-dots span:nth-child(3) {
    background-color: #7c3aed;
}

.btn-congratulations {
    width: 100%;
    background: linear-gradient(to right, #7c3aed, #6d28d9);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.btn-congratulations:hover {
    background: linear-gradient(to right, #6d28d9, #5b21b6);
    transform: scale(1.05);
}