/* Registration Medicine Design - Full Modern & Unique */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* CRITICAL: Wipe out all legacy AdminLTE/Layout background colors */
html,
body,
.container-fluid,
.row,
.col-md-12,
.col-md-10,
.col-md-8,
.right-col,
.content,
.content-header,
section {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.registration-page-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #0f172a !important;
    background: radial-gradient(circle at top right, #1e293b, #0f172a) !important;
    z-index: 1000 !important;
    /* Lowered slightly to allow plugins above */
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body {
    font-family: 'Outfit', sans-serif !important;
    margin: 0;
    padding: 0;
}

.register-container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    margin: auto;
    position: relative;
    z-index: 100;
}

.register-card {
    background: rgba(30, 41, 59, 0.4) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    border-radius: 56px !important;
    padding: 70px !important;
    position: relative;
    overflow: hidden;
}

.register-header {
    text-align: center;
    margin-bottom: 50px;
}

.register-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.register-header p {
    color: #94a3b8 !important;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Stepper Modernization */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.step {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
}

.step.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    transform: scale(1.15);
}

.step.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s;
}

.step.active .step-label {
    color: white;
    font-weight: 700;
}

/* Form Spacing & Layout */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepEnter 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes stepEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input & Label Refinement */
.form-group {
    margin-bottom: 24px !important;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #e2e8f0 !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding-left: 4px;
}

.form-group input,
.form-group textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    color: white !important;
    padding: 14px 24px !important;
    width: 100%;
    height: 60px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Aggressively hide all raw select elements to ensure only Select2 is visible */
.registration-page-wrapper select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
}



.form-group input:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2) !important;
    outline: none !important;
}

/* Select2 Modernization - Decisive Overrides for Currency & Timezone */
.select2-container--default .select2-selection--single {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    transition: all 0.3s ease !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2) !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
    padding-left: 14px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 58px !important;
    right: 20px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
    border-width: 6px 6px 0 6px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #10b981 transparent !important;
    border-width: 0 6px 6px 6px !important;
}

/* DECISIVE: Hide any duplicate Select2 containers if they are spawned */
.form-group .select2-container+.select2-container {
    display: none !important;
    visibility: hidden !important;
}

/* Dropdown styling */
/* Ensure Select2 Dropdown is on top of EVERYTHING */
.select2-container {
    z-index: 9999999 !important;
}

.select2-dropdown {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important;
    margin-top: 5px !important;
    z-index: 9999999 !important;
}

.select2-results__option {
    padding: 14px 20px !important;
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #10b981 !important;
    color: white !important;
}

.select2-search--dropdown {
    padding: 15px !important;
    background: rgba(15, 23, 42, 0.3) !important;
}

.select2-search--dropdown .select2-search__field {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 10px 15px !important;
}

/* Buttons Styling */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 20px;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 16px 48px !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    flex: 2;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    padding: 16px 32px !important;
    font-size: 1.05rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.6);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

.login-link {
    text-align: center;
    margin-top: 30px;
    color: #64748b;
}

.login-link a {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

/* Cleanup layout noise */
.tw-absolute,
.tw-fixed,
.tw-top-5,
.tw-right-5 {
    display: none !important;
}

/* FORCE HIDE LEGACY STEPS IF STILL PRESENT */
.actions.clearfix,
.wizard>.actions,
.actions,
ul[role="menu"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Remove 'wizard' class effects if they break layout */
.wizard>.content {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.wizard>.steps {
    display: none !important;
}