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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: #F4F1EC;
    color: #1E2A3A;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 780px;
    padding: 40px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.logo-wrap img {
    height: 48px;
}

.logo-separator {
    font-size: 36px;
    color: #162235;
    font-weight: 600;
    line-height: 1;
}

.card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 48px;
    border: 1px solid #D8D4CB;
    position: relative;
}

h1 {
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 8px;
    color: #162235;
}

h2 {
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 8px;
    color: #162235;
}

.subtitle {
    font-size: 15px;
    color: #5F6B78;
    margin-bottom: 32px;
    line-height: 1.5;
}

.conference-badge {
    display: inline-block;
    background: #F0EDE7;
    color: #5F6B78;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Form fields */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1E2A3A;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D8D4CB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1E2A3A;
    background: #FFFFFF;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #6B8FA6;
}

.form-group input::placeholder {
    color: #b0aba3;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Consent checkbox */
.consent-group {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #D8D4CB;
    border-radius: 8px;
    background: #faf9f7;
    transition: border-color 0.2s;
}

.consent-group.error {
    border-color: #A65A5A;
}

.consent-group .error-msg {
    margin-top: 8px;
    margin-left: 28px;
    display: none;
}

.consent-group.error .error-msg {
    display: block;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
    color: #5F6B78;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #6B8FA6;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-primary {
    background-color: #162235;
    color: #F4F1EC;
    width: 100%;
}

.btn-primary:hover {
    background-color: #1E2A3A;
}

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

.btn-secondary {
    background-color: #F0EDE7;
    color: #1E2A3A;
}

.btn-secondary:hover {
    background-color: #e6e2db;
}

.btn-reset {
    background-color: #6B8FA6;
    color: #FFFFFF;
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
}

.btn-reset:hover {
    background-color: #5a7d94;
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* Progress bar */
.progress-wrap {
    margin-bottom: 28px;
}

.progress-label {
    font-size: 13px;
    color: #5F6B78;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e6e2db;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #6B8FA6;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Question styling */
.question-number {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B8FA6;
    margin-bottom: 12px;
}

.question-text {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 6px;
    color: #1E2A3A;
}

.question-hint {
    font-size: 13px;
    color: #5F6B78;
    margin-bottom: 20px;
}

/* Answer options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #D8D4CB;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    line-height: 1.5;
}

.option-item:hover {
    border-color: #6B8FA6;
    background: #faf9f7;
}

.option-item.selected {
    border-color: #6B8FA6;
    background: #f0f4f7;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    margin-top: 3px;
    accent-color: #6B8FA6;
    flex-shrink: 0;
}

.option-label {
    font-size: 14px;
    color: #1E2A3A;
    line-height: 1.5;
}

/* Open question textarea */
.open-answer {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    border: 1px solid #D8D4CB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1E2A3A;
    resize: vertical;
    line-height: 1.6;
    margin-bottom: 28px;
}

.open-answer:focus {
    outline: none;
    border-color: #6B8FA6;
}

.open-answer::placeholder {
    color: #b0aba3;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.nav-buttons .btn {
    flex: 1;
}

/* Info screen */
.info-list {
    margin: 20px 0 28px;
}

.info-list li {
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #1E2A3A;
    list-style: none;
    position: relative;
    padding-left: 24px;
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6B8FA6;
}

/* Thank you screen */
.thank-you-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #4F8F6A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thank-you-icon svg {
    width: 32px;
    height: 32px;
    stroke: #FFFFFF;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

/* Error state */
.form-group.error input {
    border-color: #A65A5A;
}

.error-msg {
    font-size: 12px;
    color: #A65A5A;
    margin-top: 4px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

/* Validation message for questions */
.validation-msg {
    font-size: 13px;
    color: #A65A5A;
    margin-bottom: 12px;
    display: none;
}

.validation-msg.show {
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    .card {
        padding: 28px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
