* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    color: #162447;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: 'Poppins', sans-serif;
}

.signup-page {
    width: 100%;
    overflow-x: hidden;
}

.signup-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 853px;
}

.signup-left {
    position: relative;
    min-height: 853px;
    overflow: hidden;
}

.signup-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signup-left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 177, 247, 0.2);
}

.signup-right {
    background: #FFFFFF;
    padding: 60px 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-panel {
    width: 100%;
    max-width: 540px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #8fa3c0;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #162447;
}

.signup-badge {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #DCF3FF;
    color: #2EB1F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.signup-panel h1 {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #162447;
    margin-bottom: 4px;
}

.signup-subtitle {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #4a5e7a;
    margin-bottom: 28px;
}

.signup-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.form-group {
    width: 100%;
}

.full-width {
    margin-top: 2px;
}

.full-span {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #162447;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 48px;
    border: 1.5px solid rgba(22, 36, 71, 0.4);
    border-radius: 10px;
    background: #FAFAFA;
    padding: 0 44px 0 42px;
    font-weight: 400;
    font-size: 14px;
    line-height: 48px;
    color: #162447;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-wrap input:focus {
    border-color: #2EB1F7;
    box-shadow: 0 0 0 3px rgba(46, 177, 247, 0.12);
    background: #fff;
}

.input-wrap input::placeholder {
    color: #A8A8A8;
}

.input-wrap input.input-valid {
    border-color: #1d7c35;
    box-shadow: 0 0 0 3px rgba(29, 124, 53, 0.10);
}

.input-wrap input.input-invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.10);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a7394;
    font-size: 15px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #5a7394;
    cursor: pointer;
    font-size: 15px;
}

.field-message {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 16px;
    min-height: 16px;
    color: #5C5C5C;
}

.field-message.success {
    color: #1d7c35;
}

.field-message.error {
    color: #c62828;
}

.field-message.warning {
    color: #b26a00;
}

/* ── Address section ── */
.address-section {
    margin-top: 20px;
    border: 1.5px solid rgba(22, 36, 71, 0.12);
    border-radius: 12px;
    padding: 16px 20px 20px;
    background: #f9fbff;
}

.address-section-label {
    font-weight: 600;
    font-size: 13px;
    color: #162447;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-section-label i {
    color: #2EB1F7;
    font-size: 14px;
}

.address-grid {
    margin-top: 0 !important;
}

.required-tag {
    color: #e53e3e;
    font-size: 11px;
    font-weight: 600;
    margin-left: 2px;
}

.optional-tag {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 400;
    font-style: italic;
    margin-left: 4px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #E8EDF3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.strength-fill.weak {
    background: #e53935;
}

.strength-fill.medium {
    background: #f9a825;
}

.strength-fill.strong {
    background: #43a047;
}

.password-checklist {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 18px;
    font-size: 11px;
    line-height: 18px;
    color: #5C5C5C;
}

.password-checklist li {
    margin-bottom: 2px;
}

.password-checklist li.valid {
    color: #1d7c35;
    font-weight: 500;
}

.password-checklist li.valid::marker {
    color: #1d7c35;
}

/* ── Consent checkboxes ── */
.consent-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 2px;
    padding: 12px 14px;
    background: #F6F6F6;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #162447;
    cursor: pointer;
    transition: color 0.2s ease;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    min-width: 15px;
    accent-color: #2EB1F7;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label a {
    color: #2EB1F7;
    font-weight: 500;
    text-decoration: underline;
}

.consent-label a:hover {
    color: #1a9de0;
}

/* Error state — highlighted when unchecked on submit */
.consent-label.consent-error {
    color: #c62828;
}

.consent-label.consent-error input[type="checkbox"] {
    outline: 2px solid #c62828;
    outline-offset: 1px;
    border-radius: 2px;
}

/* ── End consent checkboxes ── */

.create-btn {
    width: 100%;
    height: 48px;
    margin-top: 18px;
    border-radius: 10px;
    border: none;
    background: #2EB1F7;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(46, 177, 247, 0.35);
}

.create-btn:hover {
    background: #1a9de0;
    box-shadow: 0 6px 20px rgba(46, 177, 247, 0.45);
}

.create-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(46, 177, 247, 0.3);
}

.signin-text {
    margin-top: 20px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

.signin-text a {
    color: #2EB1F7;
    font-weight: 600;
}

.floating-alert {
    position: fixed;
    top: 120px;
    right: 24px;
    z-index: 9999;
    min-width: 280px;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.35s ease;
}

.floating-alert.error {
    background: #ffe3e3;
    color: #9b1c1c;
}

.floating-alert.success {
    background: #e5ffe8;
    color: #1d7c35;
}

.floating-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-alert.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.footer {
    width: 100%;
    background: #162447;
    color: #FFFFFF;
    padding: 32px 40px 16px;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section {
    flex: 1.3;
    min-width: 220px;
}

.footer-logo-section img {
    width: 271px;
    max-width: 100%;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.social-icons a {
    color: #FFFFFF;
    font-size: 20px;
}

.footer-links,
.footer-contact,
.footer-visit {
    padding-top: 8px;
}

.footer-links {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #FFFFFF;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

.footer-contact,
.footer-visit {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact h3,
.footer-visit h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.footer-contact p,
.footer-visit p {
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #FFFFFF;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #FFFFFF;
}

@media (max-width: 1200px) {
    .signup-section {
        grid-template-columns: 1fr;
    }

    .signup-left {
        min-height: 420px;
    }

    .signup-right {
        padding: 60px 40px;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact,
    .footer-visit {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .signup-left {
        min-height: 320px;
    }

    .signup-right {
        padding: 40px 20px;
    }

    .signup-panel {
        max-width: 100%;
    }

    .signup-panel h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-span {
        grid-column: auto;
    }

    .floating-alert {
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
        top: 100px;
    }

    .footer {
        padding: 32px 16px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 28px;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact,
    .footer-visit {
        width: 100%;
        min-width: unset;
    }

    .footer-logo-section img {
        width: 180px;
    }

    .footer-links a,
    .footer-contact h3,
    .footer-visit h3,
    .footer-contact p,
    .footer-visit p {
        font-size: 16px;
        line-height: 24px;
    }

    .footer-copy {
        margin-top: 24px;
        font-size: 10px;
        line-height: 15px;
    }
}

.input-wrap select {
    width: 100%;
    height: 48px;
    border: 1.5px solid rgba(22, 36, 71, 0.4);
    border-radius: 10px;
    background: #FAFAFA;
    padding: 0 44px 0 42px;
    font-weight: 400;
    font-size: 14px;
    line-height: 48px;
    color: #162447;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-wrap select:focus {
    border-color: #2EB1F7;
    box-shadow: 0 0 0 3px rgba(46, 177, 247, 0.12);
    background: #fff;
}

/* ══════════════════════════════════════
   CONSENT MODALS
══════════════════════════════════════ */
.consent-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(22, 36, 71, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.consent-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.consent-modal {
    background: #FFFFFF;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(22, 36, 71, 0.22);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.consent-modal-overlay.active .consent-modal {
    transform: translateY(0);
}

/* Header */
.consent-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #E8EDF3;
    flex-shrink: 0;
}

.consent-modal-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: #DCF3FF;
    color: #2EB1F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.consent-modal-header>div:nth-child(2) {
    flex: 1;
}

.consent-modal-header h2 {
    font-weight: 600;
    font-size: 17px;
    line-height: 24px;
    color: #162447;
    margin: 0;
}

.consent-modal-header p {
    font-weight: 400;
    font-size: 11px;
    line-height: 16px;
    color: #727171;
    margin: 0;
}

.consent-modal-close {
    background: transparent;
    border: none;
    color: #727171;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.consent-modal-close:hover {
    background: #F6F6F6;
    color: #162447;
}

/* Scrollable body */
.consent-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #C8D6E5 transparent;
}

.consent-modal-body::-webkit-scrollbar {
    width: 5px;
}

.consent-modal-body::-webkit-scrollbar-thumb {
    background: #C8D6E5;
    border-radius: 99px;
}

.consent-section {
    margin-bottom: 20px;
}

.consent-section:last-child {
    margin-bottom: 0;
}

.consent-section h3 {
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: #162447;
    margin-bottom: 6px;
}

.consent-section p {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #4A5568;
    margin-bottom: 6px;
}

.consent-section ul {
    padding-left: 18px;
    margin: 0;
}

.consent-section ul li {
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #4A5568;
    margin-bottom: 3px;
}

/* Footer */
.consent-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #E8EDF3;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.consent-modal-accept {
    flex: 1;
    min-width: 160px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(28, 28, 28, 0.97);
    background: rgba(46, 177, 247, 0.9);
    color: #162447;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.consent-modal-accept:hover {
    background: rgba(46, 177, 247, 1);
}

.consent-modal-dismiss {
    height: 38px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #C8D6E5;
    background: #F6F6F6;
    color: #727171;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.consent-modal-dismiss:hover {
    background: #E8EDF3;
    color: #162447;
}

@media (max-width: 480px) {
    .consent-modal {
        max-height: 92vh;
        border-radius: 12px;
    }

    .consent-modal-header {
        padding: 16px 16px 12px;
    }

    .consent-modal-body {
        padding: 16px;
    }

    .consent-modal-footer {
        padding: 12px 16px;
    }
}