@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.fp-modal, .fp-modal * { box-sizing: border-box; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.fp-modal .fp-dialog { max-width: 440px; }
.fp-modal .fp-content { border: none; border-radius: 0.475rem; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }

.fp-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; }
.fp-title { font-size: 17px; font-weight: 700; color: #0f1623; }
.fp-close { width: 30px; height: 30px; border: none; background: transparent; border-radius: 8px; color: #9aa2af; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.fp-close:hover { background: #f1f3f6; color: #5b6473; }

.fp-progress-track { height: 4px; background: #eef1f5; margin: 0 24px; border-radius: 9px; overflow: hidden; }
.fp-progress-fill { height: 100%; background: linear-gradient(90deg, #222529, #5b6473); border-radius: 9px; transition: width .45s cubic-bezier(.4,0,.2,1); width: 0%; }

.fp-body { padding: 18px 24px 26px; display: flex; flex-direction: column; gap: 14px; }

.fp-phase { display: flex; flex-direction: column; gap: 16px; animation: fpRiseIn .35s ease; }
@keyframes fpRiseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


.fp-intro { margin: 0; font-size: 14px; line-height: 1.55; color: #5b6473; }

.fp-section-head { display: flex; flex-direction: column; gap: 3px; }
.fp-section-title { font-size: 14px; font-weight: 700; color: #0f1623; }
.fp-section-subtitle { margin: 0; font-size: 13.5px; color: #5b6473; }
.fp-section-strong { color: #2b3340; font-weight: 700; }

.fp-field { display: flex; flex-direction: column; gap: 7px; }
.fp-label { font-size: 13px; font-weight: 600; color: #2b3340; }

.fp-input, .fp-select { width: 100%; height: 48px; border: 1.5px solid #e3e8ef; background: #f7f9fc; border-radius: 11px; padding: 0 15px; font-size: 15px; color: #0f1623; font-family: inherit; transition: .18s; }
.fp-input:focus, .fp-select:focus { outline: none; border-color: #222529; background: #fff; box-shadow: 0 0 0 4px rgba(34,37,41,.12); }
.fp-select { cursor: pointer; }

.fp-phone-wrap { display: flex; align-items: center; height: 48px; border: 1.5px solid #e3e8ef; background: #f7f9fc; border-radius: 11px; padding: 0 6px 0 14px; gap: 8px; transition: .18s; }
.fp-phone-wrap:focus-within { border-color: #222529; background: #fff; box-shadow: 0 0 0 4px rgba(34,37,41,.12); }
.fp-phone-prefix { font-size: 15px; color: #5b6473; font-weight: 600; }
.fp-phone-divider { width: 1px; height: 22px; background: #e3e8ef; }
.fp-phone-input { flex: 1; height: 100%; border: none; background: transparent; font-size: 15px; color: #0f1623; font-family: inherit; outline: none; }

.fp-helper { font-size: 11.5px; color: #9aa2af; line-height: 1.4; padding-left: 4px; margin-top: 2px; display: inline-block; }

.fp-recaptcha { min-height: 65px; }

.fp-otp-boxes { display: flex; gap: 9px; }
.fp-otp-digit { flex: 1; width: 100%; height: 56px; text-align: center; font-size: 22px; font-weight: 700; color: #0f1623; border: 1.5px solid #e3e8ef; background: #f7f9fc; border-radius: 11px; font-family: inherit; transition: .15s; padding: 0; }
.fp-otp-digit:focus { outline: none; border-color: #222529; background: #fff; box-shadow: 0 0 0 4px rgba(34,37,41,.12); }
.fp-otp-meta { display: flex; align-items: center; justify-content: space-between; }
.fp-otp-resend { font-size: 13px; color: #9aa2af; }
.fp-otp-resend-btn { color: #222529; cursor: pointer; font-weight: 700; text-decoration: underline; }
.fp-otp-resend-btn:hover { color: #000; text-decoration: underline; }
.fp-otp-resend-btn.fp-disabled { color: #aeb6c2; cursor: not-allowed; pointer-events: none; text-decoration: none; }
.fp-otp-countdown { font-size: 13px; color: #5b6473; font-weight: 600; background: #f1f3f6; padding: 5px 10px; border-radius: 8px; }
.fp-otp-countdown.fp-danger { color: #d33a3a; background: #fdecec; }

.fp-channels { display: flex; gap: 11px; }
.fp-channel-card { flex: 1; border: 1.5px solid #e3e8ef; background: #fff; border-radius: 12px; padding: 13px 14px; cursor: pointer; transition: .15s; position: relative; }
.fp-channel-card.selected { border-color: #222529; background: #f7f9fc; }
.fp-channel-card.opacity-50 { opacity: .5; cursor: not-allowed; }
.fp-channel-radio { position: absolute; opacity: 0; pointer-events: none; }
.fp-channel-head { display: flex; align-items: center; gap: 8px; }
.fp-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c2cad6; display: flex; align-items: center; justify-content: center; transition: .15s; }
.fp-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: .15s; }
.fp-channel-card.selected .fp-radio { border-color: #222529; }
.fp-channel-card.selected .fp-radio-dot { background: #222529; }
.fp-channel-name { font-size: 14px; font-weight: 700; color: #0f1623; }
.fp-channel-target { font-size: 12.5px; color: #5b6473; margin-top: 5px; padding-left: 24px; }

.fp-confirm-box { background: #f7f9fc; border: 1px solid #e3e8ef; border-radius: 12px; padding: 14px 16px; }
.fp-confirm-message { margin: 0; font-size: 13.5px; line-height: 1.55; color: #2b3340; }
.fp-confirm-actions { display: flex; gap: 11px; }

.fp-btn-primary { height: 50px; border: none; border-radius: 12px; background: #222529; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: .18s; width: 100%; }
.fp-btn-primary:hover { background: #0a0d12; transform: translateY(-1px); }
.fp-btn-primary:disabled { background: #aeb6c2; cursor: not-allowed; transform: none; }
.fp-btn-secondary { height: 50px; border: 1.5px solid #e3e8ef; border-radius: 12px; background: #fff; color: #2b3340; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: .18s; width: 100%; }
.fp-btn-secondary:hover { background: #f7f9fc; }
.fp-confirm-actions .fp-btn-primary, .fp-confirm-actions .fp-btn-secondary { flex: 1; }

.fp-error { font-size: 12.5px; color: #d33a3a; min-height: 0; }

.fp-warning { background: #fff4ed; border: 1px solid #fdd0a8; color: #8a4b06; padding: 10px 14px; border-radius: 11px; font-size: 13px; }
.fp-warning.d-none { display: none !important; }

.fp-phase-done { align-items: center; text-align: center; padding: 6px 0 0; }
.fp-done-hero { display: flex; justify-content: center; }
.fp-done-hero-outer { width: 56px; height: 56px; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; }
.fp-done-hero-inner { width: 56px; height: 56px; border-radius: 12px; background: #e7f8ef; color: #1fab63; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.fp-done-hero-text { text-align: center; }
.fp-done-hero-title { font-size: 18px; font-weight: 800; color: #0f1623; }
.fp-done-hero-subtitle { margin: 6px 0 0; font-size: 14px; color: #5b6473; line-height: 1.5; }

.fp-phase-error { align-items: center; text-align: center; padding: 6px 0 0; }
.fp-error-hero { display: flex; justify-content: center; }
.fp-error-hero-outer { width: 56px; height: 56px; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; }
.fp-error-hero-inner { width: 56px; height: 56px; border-radius: 12px; background: #fff4ed; color: #f5a623; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; }
.fp-error-hero-text { text-align: center; }
.fp-error-hero-title { font-size: 18px; font-weight: 800; color: #0f1623; }
.fp-error-hero-subtitle { margin: 6px 0 0; font-size: 14px; color: #5b6473; line-height: 1.5; }

.fp-phase-warning { align-items: center; text-align: center; padding: 6px 0 0; }
.fp-warn-hero { display: flex; justify-content: center; }
.fp-warn-hero-outer { width: 56px; height: 56px; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; }
.fp-warn-hero-inner { width: 56px; height: 56px; border-radius: 12px; background: #fff4ed; color: #f5a623; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 800; }
.fp-warn-hero-text { text-align: center; }
.fp-warn-hero-title { font-size: 18px; font-weight: 800; color: #0f1623; }
.fp-warn-hero-subtitle { margin: 6px 0 0; font-size: 14px; color: #5b6473; line-height: 1.5; }

.fp-progress-track.fp-progress-hidden { visibility: hidden; }

.fp-suspended-countdown { margin-top: 18px; font-size: 14px; line-height: 1; font-weight: 500; color: #5b6473; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fp-countdown-icon { color: #f5a623; font-size: 28px; line-height: 1; font-weight: 800; }
.fp-suspended-countdown strong { font-weight: 800; }
.fp-suspended-countdown.fp-hidden { display: none; }

.text-uppercase { text-transform: uppercase; }
