/* ===== Register Hero ===== */
.register-hero { padding: 80px 0 40px; }
.register-headline { font-size: 36px; }
.register-subtitle { font-size: 16px; color: rgba(255,255,255,0.5); text-align: center; margin-top: 12px; }

/* ===== Register Section & Card ===== */
.register-section { max-width: 620px; margin: 0 auto; }
.register-card { padding: 32px 20px; }

/* ===== Form Sections ===== */
.form-section { margin-bottom: 32px; }
.form-section-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: #fff; }

/* ===== Form Groups ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 14px 16px; font-size: 15px; font-family: inherit;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #fff; outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: rgba(0,108,255,0.6); }
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* ===== Hint ===== */
.form-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 8px; line-height: 1.5; }

/* ===== Vantage ID Image ===== */
.vantage-id-img { border-radius: 12px; margin-top: 16px; width: 100%; }

/* ===== Checkbox ===== */
.form-checkbox {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5;
}
.form-checkbox input { display: none; }
.form-checkbox__mark {
    flex-shrink: 0; width: 20px; height: 20px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; background: rgba(255,255,255,0.06); margin-top: 1px;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s;
}
.form-checkbox input:checked + .form-checkbox__mark { background: #006CFF; border-color: #006CFF; }
.form-checkbox input:checked + .form-checkbox__mark::after { content: '\2713'; color: #fff; font-size: 13px; font-weight: 700; }
.form-link { color: #006CFF; text-decoration: underline; }

/* ===== Error ===== */
.form-error {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(255,59,48,0.1); border: 1px solid rgba(255,59,48,0.3);
    border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; text-align: left;
}
.form-error[hidden] { display: none; }
.form-error__icon { flex-shrink: 0; font-size: 16px; line-height: 1.4; }
.form-error__text { color: #fff; font-size: 14px; line-height: 1.5; }

/* ===== Submit Button ===== */
.register-btn { width: 100%; text-align: center; padding: 16px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; }

/* ===== Success View ===== */
.register-success { text-align: center; }
.success-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.success-title-icon { flex-shrink: 0; }
.success-title { font-size: 24px; font-weight: 700; color: #fff; }
.success-code {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(0,108,255,0.1); border: 1px solid rgba(0,108,255,0.3);
    border-radius: 12px; padding: 16px 24px; font-size: 20px; font-weight: 700; color: #fff;
    margin: 16px 0;
}
.copy-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.1);
    border: none; color: #fff; cursor: pointer; transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }
.success-example { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.success-note { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.success-warning {
    background: rgba(255,59,48,0.1); border: 1px solid rgba(255,59,48,0.3);
    border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; text-align: left;
}
.success-warning p { font-size: 14px; color: #fff; line-height: 1.6; }
.success-step-card { position: relative; padding: 44px 20px 20px; text-align: center; margin-bottom: 20px; }

/* ===== Phone Code Dropdown ===== */
.phone-row { display: flex; gap: 8px; }
.phone-code-wrap { position: relative; flex-shrink: 0; }
.phone-number-input { flex: 1; min-width: 0; }
.phone-code-btn {
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    text-align: left; white-space: nowrap; padding: 14px 12px;
}
.phone-code-flag { font-size: 18px; line-height: 1; }
.phone-code-dial { font-size: 14px; color: #fff; }
.phone-code-arrow { flex-shrink: 0; opacity: 0.5; }
.phone-code-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; width: 320px;
    max-height: 280px; display: none; flex-direction: column;
    background: #1a1a2e; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; z-index: 100; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.phone-code-dropdown.open { display: flex; }
.phone-code-search {
    width: 100%; padding: 10px 12px; font-size: 14px;
    background: rgba(255,255,255,0.06); border: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff; outline: none; font-family: inherit;
}
.phone-code-search::placeholder { color: rgba(255,255,255,0.3); }
.phone-code-list { overflow-y: auto; flex: 1; }
.phone-code-list::-webkit-scrollbar { width: 6px; }
.phone-code-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.phone-code-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; cursor: pointer; font-size: 14px; color: rgba(255,255,255,0.85);
    transition: background 0.15s;
}
.phone-code-option:hover { background: rgba(255,255,255,0.08); }
.phone-code-option-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.phone-code-option-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-code-option-dial { color: rgba(255,255,255,0.5); flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .phone-code-dropdown { width: calc(100vw - 48px); left: 0; }
}
@media (min-width: 641px) {
    .register-card { padding: 40px 36px; }
    .register-success { padding: 40px 36px; }
    .register-headline { font-size: 52px; }
}
@media (min-width: 769px) {
    .register-headline { font-size: 48px; }
    .success-title { font-size: 28px; }
    .success-code { font-size: 24px; padding: 18px 28px; }
}
