/* Wedding Quiz Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;

    /* Absolute Centering */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    box-shadow: var(--shadow-hover);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

.quiz-step {
    display: none;
}

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

.style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.style-option {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.style-option:hover {
    transform: scale(1.02);
}

.style-option.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(46, 90, 53, 0.3);
}

.style-option img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.style-option h4 {
    text-align: center;
    padding: var(--spacing-sm);
    margin: 0;
    background: #f9f9f9;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

/* Color Cards */
.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-card.selected {
    border-color: var(--color-primary);
    background: rgba(74, 124, 89, 0.05);
}

.color-preview {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.color-card.selected .color-preview {
    box-shadow: 0 4px 16px rgba(74, 124, 89, 0.4);
    transform: scale(1.05);
}

.color-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.2;
}

.color-card.selected .color-name {
    color: var(--color-primary);
    font-weight: 600;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
}

/* Button Animations */
.btn-back,
.btn-next-color {
    transition: all 0.3s ease;
}

.btn-back:hover:not(:disabled) {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-next-color:hover:not(:disabled) {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Input Styling */
#quiz-form input,
#quiz-form select,
#quiz-form textarea {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#quiz-form input:focus,
#quiz-form select:focus,
#quiz-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

#quiz-form label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}