*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.quiz-container {
    background: #F5F3EE;
    border-radius: 0px;
    width: 800px;
    height: 600px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.quiz-header-area {
    position: relative;
    padding: 22px 40px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid #E5E1D8;
    min-height: 70px;
}

.quiz-header-area h2 {
    font-family: 'Playfair Display', serif;
    color: #2D2D2D;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
    padding-right: 60px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 22px;
    right: 40px;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #D9BC94;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    transform: scale(1.1);
}

.quiz-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 40px 0;
    margin-bottom: 15px;
}

.quiz-content::-webkit-scrollbar {
    width: 8px;
}

.quiz-content::-webkit-scrollbar-track {
    background: #E5E1D8;
    border-radius: 10px;
}

.quiz-content::-webkit-scrollbar-thumb {
    background: #6B6B6B;
    border-radius: 10px;
}

.quiz-content::-webkit-scrollbar-thumb:hover {
    background: #2D2D2D;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.image-option-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-option-card .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 5/7;
}

.image-option-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-option-card .radio-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #D9D9D9;
    transition: all 0.3s ease;
}

.image-option-card.selected .radio-button {
    background:#6B6B6B ;
    border: 2px solid #6B6B6B;
}

.image-option-card.selected .image-wrapper {
    transform: none;
}

.image-option-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: #2D2D2D;
    text-align: left;
}

.image-option-card:hover .image-wrapper {
    transform: none;
}

.radio-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.radio-option {
    background: #EDEAE3;
    border-radius: 50px;
    padding: 12px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option .radio-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #6B6B6B;
    font-weight: 400;
    padding-left: 35px;
    position: relative;
}

.radio-option .radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 2px solid #D9D9D9;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-label::before {
    background: #6B6B6B;
    border: 2px solid #6B6B6B;
}

.radio-option:hover {
    background: #E8E4DB;
    transform: none;
}


.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 60px;
}

.option-card {
    background: #EDEAE3;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-card:hover {
    background: #E5E1D8;
}

.option-card.selected {
    background: #2D2D2D;
    color: white;
}

.option-card .icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.option-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-card p {
    font-size: 13px;
    opacity: 0.7;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 60px;
}

.option-card-list {
    background: #EDEAE3;
    border-radius: 20px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card-list:hover {
    background: #E5E1D8;
}

.option-card-list.selected {
    background: #2D2D2D;
    color: white;
}

.option-card-list h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.option-card-list p {
    font-size: 14px;
    opacity: 0.7;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2D2D2D;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #D9D9D9;
    border-radius: 12px;
    background: white;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2D2D2D;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.phone-input select {
    width: 130px;
}

.phone-input input {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #6B6B6B;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #2D2D2D;
}

.results-container {
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
}

.results-container h2 {
    font-family: 'Playfair Display', serif;
    color: #2D2D2D;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2D2D2D;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.results-message {
    color: #6B6B6B;
    margin-bottom: 30px;
    font-size: 16px;
}

.results-summary {
    background: #EDEAE3;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    text-align: left;
}

.results-summary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #D9D9D9;
}

.results-summary .summary-item:last-child {
    border-bottom: none;
}

.results-summary .label {
    font-weight: 600;
    color: #2D2D2D;
}

.results-summary .value {
    color: #6B6B6B;
}

.contact-message {
    color: #6B6B6B;
    font-size: 14px;
    margin-top: 20px;
}

.restart-btn {
    margin-top: 30px;
    padding: 14px 40px;
    background: transparent;
    color: #2D2D2D;
    border: 2px solid #2D2D2D;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: #2D2D2D;
    color: white;
}

.quiz-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 40px 18px;
    border-top: 1px solid #D9D9D9;
    flex-shrink: 0;
    background: #F5F3EE;
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #E5E1D8;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2D2D2D;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6B6B6B;
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-back,
.btn-next {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-back {
    background: white;
    color: #2D2D2D;
    border: 2px solid #D9D9D9;
    padding: 14px 18px;
    min-width: 50px;
}

.btn-back:hover {
    border-color: #2D2D2D;
}

.btn-next {
    background: #6B6B6B;
    color: white;
    border: none;
    min-width: 120px;
}

.btn-next:hover:not(:disabled) {
    background: #2D2D2D;
}

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

.subtitle {
    text-align: center;
    color: #6B6B6B;
    margin-bottom: 30px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .quiz-container {
        border-radius: 12px;
        width: 90vw;
        height: 80vh;
        max-width: 500px;
    }

    .quiz-header-area {
        padding: 20px 20px 18px;
        min-height: 60px;
    }

    .quiz-header-area h2 {
        font-size: 20px;
        padding-right: 50px;
        line-height: 1.2;
    }

    .quiz-content {
        padding: 15px 20px 0;
        margin-bottom: 10px;
    }

    .close-btn {
        top: 20px;
        right: 25px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }


    .image-options-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 12px;
    }

    .image-option-card h3 {
        font-size: 13px;
    }

    .image-option-card .image-wrapper {
        margin-bottom: 4px;
        aspect-ratio: 3/1;
    }

    .image-option-card .radio-button {
        width: 24px;
        height: 24px;
        top: 15px;
        right: 15px;
    }

    .image-option-card.selected .radio-button {
        border: 6px solid #D9BC94;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 40px;
    }

    .option-card {
        padding: 25px 15px;
    }

    .radio-options-list {
        margin-bottom: 35px;
        gap: 12px;
    }

    .radio-option {
        padding: 18px 28px;
    }

    .radio-option .radio-label {
        font-size: 15px;
    }

    .quiz-footer {
        gap: 15px;
        padding: 15px 25px 20px;
    }
    
    .progress-bar {
        width: 100%;
    }

    .button-group {
        flex-shrink: 0;
    }

    .btn-back,
    .btn-next {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-back {
        padding: 12px 16px;
    }

    .progress-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quiz-header-area {
        padding: 18px 15px 16px;
        min-height: 60px;
    }

    .quiz-header-area h2 {
        font-size: 18px;
        padding-right: 45px;
        line-height: 1.2;
    }

    .quiz-content {
        padding: 12px 15px 0;
    }

    .quiz-footer {
        padding: 12px 20px 18px;
    }


    .image-options-grid {
        grid-template-columns: 1fr;
        gap: 3px;
        margin-bottom: 8px;
    }

    .image-option-card h3 {
        font-size: 12px;
    }

    .image-option-card .image-wrapper {
        margin-bottom: 3px;
        aspect-ratio: 3/1;
    }

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