@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'SUIT', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/hero.jpg') center center/cover fixed no-repeat;
    filter: blur(10px);
    z-index: -2;
    transition: background-image 0.5s ease;
}

html::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 100%;
    background: url('/img/hero.jpg') center center/contain no-repeat;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    transition: background-image 0.5s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    width: 520px;
    max-width: 90%;
    height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateX(-50%);
    z-index: 100;
    border-bottom: none;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #cfb582;
    background: transparent;
    color: #cfb582;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-back:hover {
    background: rgba(207, 181, 130, 0.2);
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(207, 181, 130, 0.2);
    margin: 0 20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #cfb582;
    width: 0%;
    transition: width 0.35s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #cfb582;
    min-width: 45px;
}

.btn-home {
    padding: 6px 14px;
    background: transparent;
    color: #cfb582;
    border: 1px solid #cfb582;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-home:hover {
    background: rgba(207, 181, 130, 0.2);
}

/* Container */
.container {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.step {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.4s ease-out;
}

.step[style*="display: flex"] {
    display: flex;
}

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

.step-content {
    width: 100%;
    max-width: 520px;
    padding: 60px 30px;
    text-align: center;
    background: rgba(44, 30, 30, 0.92);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.step-content.intro {
    padding: 80px 40px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #cfb582;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 300;
}

.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.question {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 35px;
    line-height: 1.3;
    color: #cfb582;
}

.guide {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Form */
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #cfb582;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 10px;
    transition: 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: #cfb582;
    background: transparent;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Chips */
.chips {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 8px 14px;
    border: 1px solid rgba(207, 181, 130, 0.4);
    border-radius: 20px;
    background: transparent;
    color: #cfb582;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.chip:hover {
    border-color: #cfb582;
    background: rgba(207, 181, 130, 0.15);
}

.chip.active {
    background: #cfb582;
    color: #2c1e1e;
    border-color: #cfb582;
}

/* Table */
.confirm-table {
    width: 100%;
    text-align: left;
    margin: 20px 0;
    border-collapse: collapse;
}

.confirm-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(207, 181, 130, 0.2);
}

.confirm-table .label {
    width: 90px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 13px;
}

.confirm-table .value {
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.edit-link {
    color: #cfb582;
    text-decoration: none;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: 0.3s;
    cursor: pointer;
}

.edit-link:hover {
    background: rgba(207, 181, 130, 0.1);
}

/* Privacy */
.privacy-section {
    text-align: left;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(207, 181, 130, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 12px;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #cfb582;
}

.btn-expand {
    background: transparent;
    border: 1px solid rgba(207, 181, 130, 0.3);
    color: #cfb582;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-expand:hover {
    background: rgba(207, 181, 130, 0.1);
}

.privacy-content {
    background: rgba(207, 181, 130, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    display: none;
}

.privacy-content h4 {
    color: #cfb582;
    margin-bottom: 8px;
    font-size: 12px;
}

.privacy-content ul {
    list-style: none;
}

.privacy-content li {
    margin-bottom: 6px;
}

/* Done */
.check-icon {
    font-size: 56px;
    color: #cfb582;
    margin-bottom: 16px;
    display: inline-block;
}

.done-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.done-link-btn {
    padding: 10px 20px;
    border: 1px solid #cfb582;
    border-radius: 6px;
    color: #cfb582;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    display: inline-block;
    background: transparent;
}

.done-link-btn:hover {
    background: rgba(207, 181, 130, 0.15);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    border-top: none;
    z-index: 100;
    flex-direction: column;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn-skip,
.btn-next {
    padding: 12px 36px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.btn-skip {
    background: rgba(255, 255, 255, 0.85);
    color: #2c1e1e;
    display: none;
}

.btn-skip:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-next {
    background: rgba(255, 255, 255, 0.98);
    color: #2c1e1e;
    min-width: 160px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-next:hover:not(:disabled) {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(207, 181, 130, 0.4);
    transform: translateY(-2px);
}

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

.made-with {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.made-with a {
    display: inline-block;
    transition: all 0.3s;
}

.made-with a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.replay-logo {
    height: 30px;
    width: auto;
    filter: brightness(1);
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        height: 48px;
        padding: 0 15px;
    }

    .progress-bar {
        margin: 0 12px;
    }

    .btn-back {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .step-counter {
        font-size: 11px;
    }

    .btn-home {
        padding: 5px 12px;
        font-size: 10px;
    }

    .container {
        top: 48px;
    }

    .step-content {
        max-width: 90%;
        padding: 50px 25px;
    }

    .step-content.intro {
        padding: 60px 25px 70px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 12px;
    }

    .question {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .guide {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .confirm-table .label {
        width: 70px;
        font-size: 12px;
    }

    .confirm-table .value {
        font-size: 12px;
    }

    .footer {
        padding: 25px 15px;
    }

    .btn-next {
        padding: 11px 28px;
        font-size: 14px;
        min-width: 130px;
    }

    .button-group {
        flex-wrap: wrap;
    }
}
