.registration-page {
    margin: 0;
    background: #f3f4f6;
    color: #1d2d3d;
    font-family: Arial, Helvetica, sans-serif;
}

.registration-main {
    background: #f3f4f6;
    padding: 30px 18px 52px;
}

.registration-shell {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    padding: 18px 20px 12px;
}

.registration-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 8px auto 12px;
    max-width: 440px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #53657a;
}

.step-item.current {
    color: #1d3f5f;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0af1d;
    color: #fff;
    font-size: 14px;
}

.step-number.muted {
    background: #8b939d;
}

.step-connector {
    flex: 1;
    height: 1px;
    max-width: 110px;
    background: #b7c0ca;
    margin-bottom: 18px;
}

.registration-title {
    margin: 4px 0 18px;
    text-align: center;
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 600;
    color: #1f2d3d;
    border-bottom: 1px solid #dfe6ee;
    padding-bottom: 8px;
}

.mandatory-note {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #4d5d6b;
}

.mandatory-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d34a49;
}

.registration-toggle {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 0 20px;
    padding-left: 6px;
}

.toggle-option {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    color: #313f4d;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    min-width: 260px;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #7d8a96;
    background: #fff;
    display: inline-block;
    position: relative;
}

.toggle-option.active .radio-mark {
    border-color: #2e9a57;
    background: #2e9a57;
    box-shadow: inset 0 0 0 4px #fff;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-panel {
    display: block;
}

.form-panel.hidden {
    display: none;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2d3d;
}

.required {
    color: #d84a4a;
}

.form-field select,
.form-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c7d1dc;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
    color: #465669;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field input.is-valid {
    border-color: #2f9f66;
    box-shadow: inset 0 0 0 1px rgba(47, 159, 102, 0.15);
    background: rgba(242, 255, 247, 0.9);
}

.form-field input.is-invalid {
    border-color: #d54c46;
    box-shadow: inset 0 0 0 1px rgba(213, 76, 70, 0.14);
    background: rgba(255, 245, 245, 0.9);
}

.form-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #4b5a6a 50%), linear-gradient(135deg, #4b5a6a 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.form-field input::placeholder {
    color: #8f9aa7;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #687786;
    font-size: 18px;
}

.email-field input {
    padding-left: 38px;
}

.phone-box {
    display: grid;
    grid-template-columns: 68px 1fr;
    border: 1px solid #c7d1dc;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
}

.country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf1f4;
    border-right: 1px solid #c7d1dc;
    color: #3f4d5f;
    font-weight: 700;
}

.phone-box input {
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-left: 14px;
}

.helper-text {
    color: #5d6d7d;
    font-size: 12px;
    margin-top: 2px;
}

.pan-field.hidden {
    display: none;
}

.pan-example {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #4b5665;
    font-size: 14px;
    margin-top: 4px;
}

.pan-label {
    margin-right: 4px;
    font-weight: 600;
}

.pan-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border: 1px solid #d1d7df;
    border-radius: 3px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: #586777;
    transition: all 0.2s ease;
}

.pan-token.valid {
    border-color: #2f9f66;
    background: rgba(242, 255, 247, 0.9);
    color: #1d8a57;
}

.pan-token.invalid {
    border-color: #d54c46;
    background: rgba(255, 245, 245, 0.9);
    color: #d54c46;
}

.pan-token.pending {
    border-color: #d1d7df;
    background: #fff;
    color: #586777;
}

.pan-token.current {
    border-color: #3a8dde;
    box-shadow: 0 0 0 2px rgba(58, 141, 222, 0.15);
    transform: scale(1.04);
}

.pan-example.is-valid,
.pan-example.is-valid .pan-token {
    color: #1d8a57;
}

.pan-example.is-valid .pan-token {
    border-color: #2f9f66;
    background: rgba(242, 255, 247, 0.9);
}

.pan-example.is-invalid,
.pan-example.is-invalid .pan-token {
    color: #d54c46;
}

.pan-example.is-invalid .pan-token {
    border-color: #d54c46;
    background: rgba(255, 245, 245, 0.9);
}

.otp-success-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 4px;
    background: rgba(47, 159, 102, 0.1);
    border: 1px solid #2f9f66;
    color: #1d7f4e;
    font-weight: 700;
}

.otp-success-message[hidden] {
    display: none;
}

.registration-result-panel {
    display: flex;
    flex-direction: column;
    color: #111827;
}

.registration-result-panel.hidden {
    display: none;
}

.registration-result-success {
    margin-bottom: 26px;
    padding: 20px;
    background: #e2f2d7;
    color: #3b7635;
    font-size: 18px;
    line-height: 1.5;
}

.registration-result-details {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
}

.registration-result-panel .registration-result-proceed {
    width: 150px;
    min-height: 42px;
    margin-top: 14px;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
    display: block;
    background: #31578d;
    font-size: 17px;
    line-height: 42px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.form-field input.is-invalid {
    border-color: #d54c46;
    box-shadow: inset 0 0 0 1px rgba(213, 76, 70, 0.14);
    background: rgba(255, 245, 245, 0.9);
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    background: #f5f5f5;
    border: 1px solid #c7d1dc;
    border-radius: 4px;
    padding: 12px 14px;
    margin-top: 8px;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

#trn-captcha-input {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -1px;
}

.captcha-code {
    flex: 1;
    font-size: 28px;
    letter-spacing: 2px;
    color: #000;
    font-weight: 700;
    text-align: center;
    font-family: monospace;
    transform: skewX(-8deg);
}

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #c7d1dc;
    border-radius: 4px;
    background: #f0f0f0;
    color: #555;
    font-size: 18px;
    cursor: pointer;
}

.proceed-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(180deg, #1d7ab3 0%, #0d6ca2 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

@media (max-width: 640px) {
    .registration-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .registration-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
