/* =========================================================
   TGMF MEMBERSHIP REGISTRATION FORM
   registration-form.css
========================================================= */

/* =========================================================
   PAGE LAYOUT
========================================================= */

.box {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 12px;
}

/* =========================================================
   FORM HEADER
========================================================= */

.registration-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 10px;
}

.registration-page-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 32px;
}

/* =========================================================
   STEP NAVIGATION
========================================================= */

.nav-tabs {
    border: 0;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.nav-tabs::-webkit-scrollbar {
    height: 6px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 20px;
}

.nav-tabs .nav-item {
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 14px;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    padding: 12px 18px;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.nav-tabs .nav-link:hover {
    background: #eff6ff;
    color: #0d6efd;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active_tab1 {
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
}

.nav-tabs .nav-link.inactive_tab1 {
    opacity: 0.9;
}

/* =========================================================
   TAB PANES
========================================================= */

.tab-content {
    margin-top: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   CARD / PANEL
========================================================= */

.card,
.panel {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 2px 10px rgba(15, 23, 42, 0.04);
}

.card-header,
.panel-heading {
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #ffffff;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 0;
}

.card-body,
.panel-body {
    padding: 28px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h2 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

h4,
h5 {
    color: #0f172a;
    font-weight: 700;
}

p {
    color: #475569;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.6;
}

/* =========================================================
   FORM CONTROLS
========================================================= */

.form-group {
    margin-bottom: 22px;
}

label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: inline-block;
}

.form-control,
.form-select,
select.form-control {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background: #ffffff;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* =========================================================
   RADIO / CHECKBOX
========================================================= */

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-right: 20px;
    color: #334155;
}

.radio-inline input[type="radio"] {
    transform: scale(1.1);
}

.custom-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* =========================================================
   FILE INPUTS
========================================================= */

input[type="file"] {
    padding: 12px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #0d6efd;
    background: #eff6ff;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 12px 26px;
    transition: all 0.25s ease;
    border: 0;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #0d6efd, #084298);
    color: #ffffff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0b5ed7, #06357a);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #198754, #146c43);
}

.btn-success:hover {
    background: linear-gradient(135deg, #157347, #0f5132);
}

.btn-outline-secondary,
.btn-default {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.btn-outline-secondary:hover,
.btn-default:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* =========================================================
   ERROR STATES
========================================================= */

.is-invalid,
.has-error {
    border-color: #dc3545 !important;
}

.text-danger {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* =========================================================
   SUCCESS STATES
========================================================= */

.is-valid {
    border-color: #198754 !important;
}

/* =========================================================
   PAYMENT SECTION
========================================================= */

.payment-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    color: #1e3a8a;
    font-weight: 600;
}

.payment-note a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}

.payment-note a:hover {
    text-decoration: underline;
}

/* =========================================================
   INSTRUCTIONS BOX
========================================================= */

.instructions-box {
    background: #f8fafc;
    border-left: 5px solid #0d6efd;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.instructions-box h5 {
    margin-bottom: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .panel-body,
    .card-body {
        padding: 22px;
    }

    .btn {
        width: 100%;
        margin-bottom: 12px;
    }

    .radio-inline {
        display: flex;
        margin-bottom: 12px;
    }

}

@media (max-width: 768px) {

    .box {
        margin-top: 20px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .panel-body,
    .card-body {
        padding: 18px;
    }

    .form-control,
    .form-select {
        min-height: 48px;
    }

}

@media (max-width: 576px) {

    .nav-tabs {
        gap: 6px;
    }

    .nav-tabs .nav-link {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .panel-heading,
    .card-header {
        font-size: 1rem;
        padding: 16px 18px;
    }

}

/* =========================================================
   SMOOTH INTERACTIONS
========================================================= */

* {
    scroll-behavior: smooth;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =========================================================
   OPTIONAL GLASS EFFECT
========================================================= */

.glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

/* =========================================================
   OPTIONAL STEP COUNTER STYLE
========================================================= */

.step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}