/* ================================================
   Register Page — business/register & register_form
   ================================================ */

/* Page wrapper */
.reg-page-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Card */
.reg-page-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 60, 120, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* Blue header stripe */
.reg-page-header {
    background: #009dff;
    padding: 1.75rem 2rem;
    text-align: center;
}

.reg-page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Card body */
.reg-page-body {
    padding: 1.75rem 2rem 2rem;
}

/* Override Bootstrap grid inside card */
.reg-page-body .col-md-10,
.reg-page-body .col-xs-12 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* ================================================
   jQuery Steps overrides
   ================================================ */

#business_register_form.wizard > .steps {
    margin-bottom: 1.5rem;
}

#business_register_form.wizard > .steps ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

#business_register_form.wizard > .steps ul::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

#business_register_form.wizard > .steps ul > li {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

#business_register_form.wizard > .steps ul > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #888;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
}

#business_register_form.wizard > .steps ul > li > a::before {
    content: attr(data-step-number);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: #888;
    transition: all 0.3s ease;
}

/* Active step */
#business_register_form.wizard > .steps ul > li.current > a,
#business_register_form.wizard > .steps ul > li.current > a:hover {
    color: white;
    font-weight: 600;
}

#business_register_form.wizard > .steps ul > li.current > a::before {
    background: #009dff;
    border-color: #009dff;
    color: white;
}

/* Done step */
#business_register_form.wizard > .steps ul > li.done > a {
    color: #555;
}

#business_register_form.wizard > .steps ul > li.done > a::before {
    background: #28a745;
    border-color: #28a745;
    color: white;
    content: '✓';
}

/* Hide jQuery Steps auto "1." number prefix */
#business_register_form.wizard > .steps .number,
#business_register_form .steps .number {
    display: none !important;
}

/* Hide default title span (h3 used as trigger only) */
#business_register_form .wizard > .steps .title,
#business_register_form.wizard > .steps .title {
    display: none !important;
}

/* Step content area */
#business_register_form.wizard > .content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0 !important;
    min-height: auto !important;
}

#business_register_form.wizard > .content > .body {
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

/* Navigation buttons */
#business_register_form.wizard > .actions {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

#business_register_form.wizard > .actions ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

#business_register_form.wizard > .actions ul > li:first-child { margin-right: auto; }
#business_register_form.wizard > .actions ul > li:last-child  { margin-left: auto; }

#business_register_form.wizard > .actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

#business_register_form.wizard > .actions a[href="#previous"] {
    background: #f0f0f0;
    color: #333;
}

#business_register_form.wizard > .actions a[href="#previous"]:hover {
    background: #e0e0e0;
}

#business_register_form.wizard > .actions a[href="#next"],
#business_register_form.wizard > .actions a[href="#finish"] {
    background: #009dff;
    color: white;
}

#business_register_form.wizard > .actions a[href="#next"]:hover,
#business_register_form.wizard > .actions a[href="#finish"]:hover {
    background: #0077cc;
}

#business_register_form.wizard > .actions ul > li.disabled a {
    opacity: 0.4;
    pointer-events: none;
}

/* ================================================
   Form section content styles
   ================================================ */

.register-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #009dff;
    padding-left: 10px;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.form-grid-register {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid-register-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid-register-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-item {
    display: flex;
    flex-direction: column;
}

.form-item label {
    font-weight: 500;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
}

.form-item label .req {
    color: #dc3545;
    margin-left: 3px;
}

.form-item .form-control {
    border-radius: 4px;
    font-size: 14px;
}

/* Business type radio cards */
.btype-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.btype-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500 !important;
    font-size: 13px !important;
    margin-bottom: 0 !important;
}

.btype-options label:has(input:checked) {
    border-color: #009dff;
    background: #f0f7ff;
}

.btype-description {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 4px solid #009dff;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    min-height: 20px;
}

.reg-note {
    margin-bottom: 1.2rem;
    padding: 10px 14px;
    background: #e8f4fd;
    border-left: 4px solid #009dff;
    border-radius: 4px;
    font-size: 13px;
    color: #444;
}

@media (max-width: 768px) {
    .form-grid-register-2,
    .form-grid-register-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reg-page-header { padding: 1.25rem; }
    .reg-page-body   { padding: 1.25rem; }
}
