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

body {
    background: #f0ebf8;
    font-family: 'Roboto', 'Google Sans', sans-serif;
    color: #202124;
    min-height: 100vh;
}

.gf-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 12px 60px;
}

/* ===== Header ===== */
.gf-header {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.gf-header-accent {
    height: 10px;
    background: linear-gradient(90deg, #7248c1, #9c59e8);
}

.gf-header-body {
    padding: 24px 28px 20px;
}

.gf-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #202124;
    margin-bottom: 14px;
}

.gf-progress-bar {
    height: 5px;
    background: #e8d5f7;
    border-radius: 3px;
    overflow: hidden;
}
.gf-progress-fill {
    height: 100%;
    background: #7248c1;
    border-radius: 3px;
    transition: width .4s ease;
}

/* ===== Cards ===== */
.gf-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.gf-identity-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf-page-header-card {
    border-left: 6px solid #7248c1;
}

.gf-page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #444;
}

/* ===== Fields ===== */
.gf-field { display: flex; flex-direction: column; gap: 6px; }

.gf-label {
    font-size: .92rem;
    font-weight: 500;
    color: #444;
}

.gf-required { color: #d93025; margin-left: 2px; }

.gf-question {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}

.gf-description {
    font-size: .88rem;
    color: #666;
    margin-bottom: 10px;
}

.gf-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #dadce0;
    padding: 8px 0;
    font-size: .95rem;
    color: #202124;
    background: transparent;
    outline: none;
    transition: border-color .2s;
}
.gf-input:focus { border-bottom: 2px solid #7248c1; }

.gf-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #dadce0;
    padding: 8px 0;
    font-size: .95rem;
    color: #202124;
    background: transparent;
    outline: none;
    resize: vertical;
    transition: border-color .2s;
    font-family: inherit;
}
.gf-textarea:focus { border-bottom: 2px solid #7248c1; }

/* ===== Options ===== */
.gf-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.gf-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .95rem;
    color: #333;
    user-select: none;
}

.gf-option-label input[type="radio"],
.gf-option-label input[type="checkbox"] {
    display: none;
}

.gf-option-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #757575;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s;
}
.gf-option-label input[type="radio"]:checked ~ .gf-option-circle {
    border-color: #7248c1;
}
.gf-option-label input[type="radio"]:checked ~ .gf-option-circle::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #7248c1;
}

.gf-option-square {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid #757575;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s;
}
.gf-option-label input[type="checkbox"]:checked ~ .gf-option-square {
    border-color: #7248c1;
    background: #7248c1;
}
.gf-option-label input[type="checkbox"]:checked ~ .gf-option-square::after {
    content: '✓';
    position: absolute;
    top: -1px; left: 2px;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

/* ===== Navigation ===== */
.gf-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
}

.gf-btn-back {
    background: none;
    border: 1px solid #7248c1;
    color: #7248c1;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.gf-btn-back:hover { background: #f0ebf8; }

.gf-btn-next {
    background: #7248c1;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.gf-btn-next:hover { background: #5e38a8; }

.gf-btn-submit {
    background: #7248c1;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.gf-btn-submit:hover { background: #5e38a8; }

/* ===== Footer ===== */
.gf-footer {
    text-align: center;
    margin-top: 28px;
    font-size: .78rem;
    color: #aaa;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .gf-wrapper { padding: 12px 8px 40px; }
    .gf-header-body { padding: 16px; }
    .gf-form-title { font-size: 1.4rem; }
    .gf-card { padding: 16px; }
}
