.gform-wrapper {
    max-width: 720px;
    margin: auto;
    padding: 0 16px;
}

/* =========================
    HEADER CARD
    ========================= */
.gform-header-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark .gform-header-card {
    background: #0f172a;
}

/* Accent bar */
.gform-accent {
    height: 5px;
    background: #1da851;
}

/* Header body */
.gform-header-body {
    padding: 20px 24px;
}

/* =========================
    HEADER LAYOUT (FIX CENTER)
    ========================= */
.gform-header-flex {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 25px;
}

/* Back button */
.gform-back-btn {
    /* position: absolute; */
    margin-right: 14px;
    left: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: transparent;
    transition: background 0.2s ease;
}

.gform-back-btn:hover {
    background: #f1f5f9;
}

.dark .gform-back-btn {
    border-color: #334155;
    color: #e5e7eb;
}

.dark .gform-back-btn:hover {
    background: #334155;
}

/* Title benar-benar center */
.gform-title {
    font-size: 20px;
    font-weight: 600;
    /* white-space: nowrap; */
}

@media (max-width: 450px) {
    .gform-title {
        font-size: 14px;
    }
}

.dark .gform-title {
    color: #e5e7eb;
}

/* =========================
    CARD FIELD
    ========================= */
.gcard {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark .gcard {
    background: #0f172a;
    border-color: #334155;
}

/* Label */
.gcard-label {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    display: block;
    margin-bottom: 4px;
}

.dark .gcard-label {
    color: #e5e7eb;
}

.required {
    color: #d93025;
}

/* Hint */
.gcard-hint {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 10px;
}

.dark .gcard-hint {
    color: #94a3b8;
}

/* Input underline */
.gcard-input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #dadce0;
    padding: 6px 0;
    font-size: 14px;
    background: transparent;
    outline: none;
    color: #202124;
    transition: border-color 0.2s ease, color 0.2s ease;
}

/* Placeholder (light) */
.gcard-input::placeholder {
    color: #80868b;
}

/* Focus (light) */
.gcard-input:focus {
    border-bottom: 2px solid #1da850c0;
}

/* =========================
    DARK MODE
    ========================= */
.dark .gcard-input {
    color: #e5e7eb;
    /* text */
    border-bottom-color: #475569;
    /* underline */
}

/* Placeholder (dark) */
.dark .gcard-input::placeholder {
    color: #64748b;
}

/* Focus (dark) */
.dark .gcard-input:focus {
    border-bottom-color: #60a5fa;
}

.gcard-textarea {
    resize: none;
}

/* Auto expand feel */
.gcard-textarea:focus {
    /* min-height: 96px; */
}

.gcard-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
    padding-right: 28px;
    /* ruang icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 18px;
    padding-left: 8px;
}

.gcard-select option {
    padding: 8px 12px !important;
    line-height: 1.8 !important;
}

.dark .gcard-select option {
    background-color: #020617 !important;
    color: #e5e7eb !important;
}

.gcard-select-native {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 32px;
    /* ruang icon */
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 18px;
}

/* Dark mode arrow */
.dark .gcard-select-native {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Dark mode arrow */
.dark .gcard-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Option color fix */
.gcard-select option {
    color: #202124;
}

.dark .gcard-select option {
    color: #020617;
}

/* =========================
    AUTOFILL FIX (IMPORTANT)
    ========================= */
input:-webkit-autofill {
    -webkit-text-fill-color: #202124;
    transition: background-color 9999s ease-in-out 0s;
}

.dark input:-webkit-autofill {
    -webkit-text-fill-color: #e5e7eb;
}

/* =========================
    ERROR (MANUAL)
    ========================= */
.gcard-error {
    display: none;
    font-size: 12px;
    color: #d93025;
    margin-top: 8px;
}

.gcard.show-error .gcard-error {
    display: flex;
    gap: 8px;
}

.gcard-error-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d93025;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
