/* WSM Registration v2.0 — Frontend Styles */

/* ── Base ── */
.wsm-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; font-family: 'Segoe UI', system-ui, sans-serif; }
.wsm-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 32px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.wsm-card-sm { max-width: 480px; margin: 40px auto; }

/* ── Form elements ── */
.wsm-form-title { font-size: 22px; font-weight: 800; text-align: center; color: #1a1a1a; margin: 0 0 4px; }
.wsm-step-title  { font-size: 15px; font-weight: 700; color: #1a73e8; text-align: center; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 1px; }
.wsm-step-subtitle { text-align: center; color: #888; font-size: 14px; margin: 0 0 24px; }

.wsm-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.wsm-field label { font-size: 12px; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .5px; }
.wsm-input { padding: 11px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 100%; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; background: #fafafa; }
.wsm-input:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.1); background: #fff; }
.wsm-textarea { resize: vertical; min-height: 80px; }
.wsm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .wsm-field-row { grid-template-columns: 1fr; } }

/* ── Password field ── */
.wsm-pass-field { position: relative; }
.wsm-pass-field .wsm-input { padding-right: 44px; }
.wsm-eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1; }

/* ── Buttons ── */
.wsm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; border: 2px solid transparent; }
.wsm-btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.wsm-btn-primary:hover { background: #1557b0; border-color: #1557b0; }
.wsm-btn-outline  { background: #fff; color: #1a73e8; border-color: #1a73e8; }
.wsm-btn-outline:hover { background: #e8f0fe; }
.wsm-btn-full { width: 100%; }
.wsm-btn-lg   { padding: 14px 28px; font-size: 15px; }
.wsm-btn-sm   { padding: 7px 14px; font-size: 12px; }
.wsm-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Progress ── */
.wsm-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; gap: 0; }
.wsm-progress-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wsm-step-num { width: 32px; height: 32px; border-radius: 50%; background: #ddd; color: #999; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.wsm-step-label { font-size: 11px; color: #999; font-weight: 600; }
.wsm-progress-step.wsm-active .wsm-step-num { background: #1a73e8; color: #fff; }
.wsm-progress-step.wsm-active .wsm-step-label { color: #1a73e8; }
.wsm-progress-step.wsm-done .wsm-step-num { background: #27ae60; color: #fff; }
.wsm-progress-line { width: 60px; height: 2px; background: #ddd; margin: 0 4px; margin-bottom: 16px; }

/* ── Package cards (Step 1) ── */
.wsm-paket-grid-v2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 0 0 12px; }
@media (max-width: 720px) { .wsm-paket-grid-v2 { grid-template-columns: 1fr; } }

.wsm-pkg-label { display: block; cursor: pointer; border-radius: 12px; border: 2px solid #ddd; position: relative; overflow: visible; transition: border-color .2s, box-shadow .2s, transform .2s; background: #fff; }
.wsm-pkg-label input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.wsm-pkg-label:hover { border-color: #1a73e8; box-shadow: 0 6px 20px rgba(26,115,232,.13); transform: translateY(-2px); }
.wsm-pkg-label.is-selected { border-color: #1a73e8; box-shadow: 0 8px 28px rgba(26,115,232,.2); transform: translateY(-3px); }
.wsm-pkg-label.is-featured { border-color: #1a73e8; }

.wsm-pkg-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #1a73e8; color: #fff; padding: 3px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(26,115,232,.35); }
.wsm-pkg-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; transition: all .2s; }
.wsm-pkg-label.is-selected .wsm-pkg-check { background: #1a73e8; border-color: #1a73e8; color: #fff; }

.wsm-pkg-body { padding: 22px 16px 16px; }
.wsm-pkg-name  { font-size: 15px; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.wsm-pkg-price-wrap { margin-bottom: 4px; }
.wsm-pkg-price-coret { font-size: 12px; color: #aaa; text-decoration: line-through; margin-right: 4px; }
.wsm-pkg-price { font-size: 20px; font-weight: 900; color: #1a73e8; letter-spacing: -.5px; }
.wsm-pkg-sub   { font-size: 11px; color: #888; margin-bottom: 12px; line-height: 1.4; }
.wsm-pkg-perks { list-style: none; padding: 0; margin: 0 0 14px; font-size: 12px; color: #444; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.wsm-pkg-perks li { padding: 2px 0; line-height: 1.5; }
.wsm-btn-pilih-paket { display: block; width: 100%; padding: 9px; border: 2px solid #1a73e8; border-radius: 7px; background: #fff; color: #1a73e8; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .2s; text-align: center; }
.wsm-pkg-label.is-selected .wsm-btn-pilih-paket, .wsm-btn-pilih-paket:hover { background: #1a73e8; color: #fff; }
.wsm-pkg-note { font-size: 12px; color: #999; margin-top: 8px; }

/* ── Step 2 layout ── */
.wsm-step2-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
@media (max-width: 720px) { .wsm-step2-layout { grid-template-columns: 1fr; } }

.wsm-domain-toggle { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.wsm-domain-section { margin-top: 4px; }
.wsm-domain-info { font-size: 14px; color: #555; margin-bottom: 12px; }
.wsm-domain-field { display: flex; align-items: center; gap: 0; }
.wsm-domain-field .wsm-input { border-radius: 8px 0 0 8px; flex: 1; }
.wsm-domain-tld { background: #f0f0f0; border: 1px solid #ddd; border-left: none; border-radius: 0 8px 8px 0; padding: 11px 12px; font-size: 14px; color: #555; white-space: nowrap; }

/* Domain option boxes */
.wsm-domain-option-box { border: 2px solid #e0e0e0; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.wsm-domain-option-box.is-active { border-color: #1a73e8; background: #f0f5ff; }
.wsm-domain-option-box.is-disabled { opacity: .45; }
.wsm-domain-option-box.is-disabled .wsm-domain-option-body { pointer-events: none; }
.wsm-domain-option-header { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.wsm-domain-option-header input[type=radio] { width: 16px; height: 16px; accent-color: #1a73e8; cursor: pointer; }
.wsm-option-label { font-weight: 700; font-size: 14px; flex: 1; }
.wsm-option-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.wsm-domain-option-body { margin-top: 12px; }
.wsm-domain-option-body small { display: block; margin-top: 4px; color: #888; font-size: 12px; }

/* ── Order summary sidebar ── */
.wsm-order-summary { background: #f8f9ff; border: 1px solid #dce3f5; border-radius: 12px; padding: 18px; position: sticky; top: 20px; }
.wsm-order-summary h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #444; }
.wsm-summary-item { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px solid #eef0f8; }
.wsm-summary-item span { color: #888; }
.wsm-summary-item strong { color: #222; text-align: right; max-width: 58%; word-break: break-word; }
.wsm-summary-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; padding-top: 10px; margin-top: 4px; color: #1a73e8; }

/* ── Step 3 layout ── */
.wsm-step3-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
@media (max-width: 720px) { .wsm-step3-layout { grid-template-columns: 1fr; } .wsm-order-summary { order: -1; } }

/* ── Misc ── */
.wsm-login-link { text-align: center; font-size: 13px; color: #888; margin-top: 14px; }
.wsm-login-link a { color: #1a73e8; }
.wsm-back { margin-top: 16px; }
.wsm-back a { color: #888; font-size: 13px; }
.wsm-checkbox-row { flex-direction: row; align-items: center; justify-content: space-between; }

/* ── Member area ── */
.wsm-member-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.wsm-member-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.wsm-member-active { border-color: #27ae60; background: #f0faf4; }
.wsm-table-simple { width: 100%; border-collapse: collapse; font-size: 13px; }
.wsm-table-simple th { text-align: left; padding: 8px 12px; font-size: 11px; text-transform: uppercase; color: #888; border-bottom: 2px solid #f0f0f0; }
.wsm-table-simple td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
@media (max-width: 640px) { .wsm-table-simple thead { display: none; } .wsm-table-simple tr { display: block; border-bottom: 2px solid #eee; padding: 8px 0; } .wsm-table-simple td { display: flex; justify-content: space-between; border: none; padding: 4px 0; } }

/* ── Badges ── */
.wsm-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.wsm-badge-pending    { background: #fff3cd; color: #856404; }
.wsm-badge-processing { background: #cce5ff; color: #004085; }
.wsm-badge-launched   { background: #d4edda; color: #155724; }
.wsm-badge-expired    { background: #f8d7da; color: #721c24; }

/* ── Renew form ── */
.wsm-renew-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 600px) { .wsm-renew-grid { grid-template-columns: 1fr; } }
.wsm-renew-card { border: 2px solid #ddd; border-radius: 10px; padding: 16px; cursor: pointer; transition: border-color .2s; }
.wsm-renew-card:has(input:checked) { border-color: #1a73e8; background: #f0f5ff; }
.wsm-renew-card input { display: none; }

/* ── Perpanjangan info box ── */
.wsm-renew-info-box {
    background: #f8f9ff; border: 1px solid #dce3f5; border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
}
.wsm-renew-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .wsm-renew-info-grid { grid-template-columns: 1fr; } }
.wsm-renew-info-item { display: flex; flex-direction: column; gap: 3px; }
.wsm-renew-info-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .5px; }
.wsm-renew-info-value { font-size: 14px; color: #1a1a1a; }

.wsm-renew-price-box {
    background: linear-gradient(135deg, #e8f0fe, #f0f5ff); border: 1px solid #c5d8fd;
    border-radius: 12px; padding: 20px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.wsm-renew-bank-box {
    background: #fffbf0; border: 1px solid #ffe082; border-radius: 10px;
    padding: 16px; margin-bottom: 20px;
}
.wsm-quick-profile-box {
    background: #f8f9ff;
    border: 1px solid #dce3f5;
    border-radius: 10px;
    padding: 18px;
    margin: 16px 0;
}
.wsm-quick-profile-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin: 0 0 12px;
    text-transform: uppercase;
}