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

:root {
    --primary: #1710e6;
    --primary-dark: #100ba8;
    --primary-darker: #0a065c;
    --primary-light: #5d54ff;
    --primary-lighter: #85ffea;
    --primary-wash: #eceaff;
    --primary-ghost: #f6f5ff;
    --heading: #0f1729;
    --body: #3d4359;
    --muted: #6b7294;
    --border: #dfe2ef;
    --border-focus: #bcc0ff;
    --surface: #f7f8fc;
    --bg: #ffffff;
    --dark-bg: #0e0a33;
    --error: #e53935;
    --success: #00b34a;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 10px;
    --shadow-card: 0 1px 4px rgba(10, 6, 92, 0.06), 0 4px 16px rgba(10, 6, 92, 0.05);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- PAGE LAYOUT (Google Form style: centered single column) ---- */
.page-wrapper {
    flex: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 16px 48px;
}

/* ---- HERO BANNER ---- */
.hero-banner {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    height: 180px;
    background: var(--primary-darker);
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 60%, rgba(23, 16, 230, 0.5), transparent 60%),
        radial-gradient(ellipse at 75% 30%, rgba(93, 84, 255, 0.4), transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(0, 179, 74, 0.1), transparent 50%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(10px, -8px);
    }
}

.hero-banner-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title-banner {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hero-title-banner span {
    color: var(--primary-lighter);
}

.hero-subtitle-banner {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* ---- TITLE CARD (attached below banner) ---- */
.title-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 28px 32px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
}

.title-card h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 12px;
}

.title-card .desc {
    font-size: 13px;
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.title-card .desc strong {
    color: var(--heading);
    font-weight: 600;
}

.required-note {
    font-size: 12px;
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- INFO CARD (community details) ---- */
.info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
}

.info-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 .icon {
    width: 20px;
    height: 20px;
    background: var(--primary-wash);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h3 .icon svg {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.info-card p,
.info-card li {
    font-size: 13px;
    color: var(--body);
    line-height: 1.65;
}

.info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.info-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-card li::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-top: 7px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--primary-ghost);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    color: var(--heading);
    line-height: 1.45;
}

.benefit-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- FORM CARDS ---- */
.form-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s var(--ease);
}

.form-card:focus-within {
    border-color: var(--border-focus);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-section-header svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 8px;
    line-height: 1.4;
}

.form-label .req {
    color: var(--error);
    margin-left: 2px;
}

.form-label .hint {
    font-weight: 400;
    color: var(--muted);
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--heading);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0b5c9;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
    border-color: #c5c9e3;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 16, 230, 0.08);
}

.form-textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.55;
}

.form-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b7294' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Radio & Checkbox groups */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.option-group--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s var(--ease);
    font-size: 13px;
    color: var(--body);
}

.option-item:hover {
    background: var(--primary-ghost);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    position: relative;
}

.option-item input[type="radio"] {
    border-radius: 50%;
}

.option-item input[type="checkbox"] {
    border-radius: var(--radius-sm);
}

.option-item input[type="radio"]:checked {
    border-color: var(--primary);
    background: var(--bg);
}

.option-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.option-item input[type="checkbox"]:checked {
    border-color: var(--primary);
    background: var(--primary);
}

.option-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 4px;
    height: 7px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.option-item input:focus {
    box-shadow: 0 0 0 3px rgba(23, 16, 230, 0.1);
}

.option-other-input {
    margin-top: 4px;
    margin-left: 26px;
}

.option-other-input .form-input {
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1.5px solid var(--border);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: transparent;
}

.option-other-input .form-input:focus {
    border-bottom-color: var(--primary);
    box-shadow: none;
}

/* ---- SUBMIT AREA ---- */
.submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 4px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(23, 16, 230, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-clear {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background 0.15s var(--ease);
}

.btn-clear:hover {
    background: var(--primary-ghost);
}

/* ---- SUCCESS STATE ---- */
.form-success {
    display: none;
    text-align: center;
    padding: 32px 24px;
}

.form-success.active {
    display: block;
    animation: fadeIn 0.4s var(--ease) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.form-success h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ---- PAYMENT AREA ---- */
.payment-area {
    background: var(--primary-ghost);
    border: 1.5px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #fff;
    margin: 0 auto 16px;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    width: 100%;
    height: 100%;
    display: block;
}

.payment-info {
    text-align: left;
    margin: 0 auto;
    max-width: 300px;
    font-size: 13px;
}

.payment-info div {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.payment-info span:first-child {
    color: var(--muted);
    font-weight: 500;
}

.payment-info span:last-child {
    color: var(--heading);
    font-weight: 700;
}

.payment-info .copy-btn {
    background: var(--primary-wash);
    color: var(--primary);
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 6px;
}

.waiting-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 20px;
    font-size: 14px;
}

.final-success {
    display: none;
    padding-top: 20px;
    animation: fadeIn 0.4s var(--ease) both;
}

.fb-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1877F2;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.2s;
}

.fb-group-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark-bg);
    padding: 24px 16px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.5;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

.footer a:hover {
    color: var(--primary-lighter);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    .page-wrapper {
        padding: 16px 10px 32px;
    }

    .title-card,
    .info-card,
    .form-card {
        padding: 20px;
    }

    .hero-banner {
        height: 150px;
    }

    .hero-title-banner {
        font-size: 17px;
    }

    .title-card h1 {
        font-size: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .option-group--grid {
        grid-template-columns: 1fr;
    }
}

/* ---- PRINT ---- */
@media print {
    body {
        background: #fff;
    }

    .hero-banner {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}