/* ============================================================
   Marshanam — Register Organization and User
   File: public/css/register.css
   ============================================================ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-1:       #4f6ef7;
    --blue-2:       #3a56e4;
    --blue-3:       #2d47d0;
    --green:        #25D366;
    --green-2:      #16a34a;
    --gray-50:      #f9fafb;
    --gray-100:     #f3f4f6;
    --gray-200:     #e5e7eb;
    --gray-400:     #9ca3af;
    --gray-500:     #6b7280;
    --gray-700:     #374151;
    --gray-900:     #111827;
    --error:        #ef4444;
    --success:      #22c55e;
    --radius:       13px;
    --radius-full:  50px;
}

/* ── Body & Background ── */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, #4f6ef7 0%, #3346d8 45%, #1e35b8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 16px 48px;
    position: relative;
    overflow-x: hidden;
}

/* ── Decorative Blobs ── */
.blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}
.blob-1 { width: 480px; height: 480px; top: -180px; left: -140px; background: rgba(255,255,255,0.05); }
.blob-2 { width: 320px; height: 320px; bottom: -90px; right: -70px; background: rgba(255,255,255,0.04); }
.blob-3 { width: 180px; height: 180px; top: 45%; left: 62%; background: rgba(37,211,102,0.07); }

/* ── Top Navigation ── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 100;
    background: rgba(42,60,196,0.45);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;    
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.nav-logo span {
    width: 28px; height: 28px; border-radius: 8px;
    background: #25d366;
    display: grid; place-items: center;
    color: #fff; 
    font-size: .9rem;
}

/* ── Card ── */
.card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 72px rgba(0,0,0,0.22);
    overflow: hidden;
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

/* ── Card Header (Step Indicator) ── */
.card-header {
    background: linear-gradient(135deg, #1e35b8 0%, #3a56e4 100%);
    padding: 26px 30px 22px;
    position: relative;
    overflow: hidden;
}
.card-header::before {
    content: '';
    position: absolute;
    top: -50px; left: 55%;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(37,211,102,0.09);
}
.card-header::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.steps {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.step-item {
    display: flex;
    align-items: center;
    flex: 1;
}
.step-item:last-child { flex: 0; }

.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}
.step-dot.done   { background: var(--green); color: #fff; box-shadow: 0 0 0 3px rgba(37,211,102,0.3); }
.step-dot.active { background: #fff; color: var(--blue-2); box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.step-dot.wait   { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.5); }

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 6px;
    border-radius: 2px;
    overflow: hidden;
}
.step-line-fill {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0;
}

.hdr-text { position: relative; z-index: 1; }
.hdr-text h2 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 3px; letter-spacing: -0.2px; }
.hdr-text p  { font-size: 12.5px; color: rgba(255,255,255,0.7); }

/* ── Card Body ── */
.card-body { padding: 26px 30px 30px; }

/* ── Step Panels ── */
.panel { display: none; }
.panel.active { display: block; animation: panFwd 0.32s ease both; }
.panel.back   { animation: panBck 0.32s ease both; }
@keyframes panFwd { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes panBck { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* ── Grid Layouts ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── Form Fields ── */
.field { margin-bottom: 14px; }
.field:last-of-type { margin-bottom: 0; }

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}
.field label .req { color: var(--blue-1); margin-left: 1px; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-900);
    background: var(--gray-50);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.5' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
    cursor: pointer;
}
.field textarea {
    resize: vertical;
    min-height: 88px;
    border-radius: var(--radius);
    line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-1);
    box-shadow: 0 0 0 3px rgba(79,110,247,0.12);
    background: #fff;
}

.field input.err,
.field select.err,
.field textarea.err {
    border-color: var(--error);
    background: #fff8f8;
}

/* ── Field Error Messages ── */
.ferr {
    font-size: 11.5px;
    color: var(--error);
    margin-top: 4px;
    padding-left: 2px;
    display: none;
    font-weight: 600;
}
.ferr.show { display: block; }

/* ── Password Toggle ── */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.ptog {
    position: absolute;
    right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 15px;
    padding: 2px;
    transition: color 0.15s;
}
.ptog:hover { color: var(--gray-700); }

/* ── Password Strength Bar ── */
.str-bar { display: flex; gap: 4px; margin-top: 7px; }
.str-bar span {
    flex: 1; height: 3px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background 0.3s;
}
.str-lbl {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    margin-top: 3px;
    min-height: 13px;
}

/* ── Section Label ── */
.sec-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--blue-1);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Free Plan Badge ── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.chip::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* ── Terms & Conditions ── */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 0;
}
.terms-row input[type=checkbox] {
    width: 16px; height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--blue-1);
    cursor: pointer;
}
.terms-row label {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.6;
    cursor: pointer;
}
.terms-row a { color: var(--blue-1); font-weight: 600; text-decoration: none; }
.terms-row a:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn-row { display: flex; gap: 10px; margin-top: 22px; }

.btn-back {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-back:hover { background: var(--gray-200); }

.btn-next {
    flex: 1;
    padding: 13px 22px;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(79,110,247,0.35);
}
.btn-next:active { transform: none; }
.btn-next:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Loading Spinner (inside submit button) ── */
.spin {
    width: 17px; height: 17px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rot 0.7s linear infinite;
    display: none;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ── Login Hint ── */
.hint {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--gray-500);
}
.hint a { color: var(--blue-1); font-weight: 700; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

/* ── Success State ── */
.success {
    display: none;
    text-align: center;
    padding: 32px 24px 40px;
    animation: cardIn 0.4s ease both;
}
.success-ico {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
    box-shadow: 0 10px 28px rgba(34,197,94,0.3);
    animation: pop 0.5s cubic-bezier(0.17, 0.67, 0.3, 1.4) both 0.2s;
}
@keyframes pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.success h2 { font-size: 22px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.success p  { font-size: 14px; color: var(--gray-500); margin-bottom: 26px; line-height: 1.65; }

.btn-go {
    display: inline-flex;
    align-items: center; gap: 8px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79,110,247,0.4);
}

/* ── Responsive ── */
@media (max-width: 500px) {
    body { padding: 68px 12px 32px; }
    .card-body  { padding: 20px 18px 22px; }
    .card-header { padding: 20px 18px 18px; }
    .g2, .g3 { grid-template-columns: 1fr; gap: 0; }
}

/* ───────────────────────── Service Categories CSS Start ───────────────────────── */
.radio-group{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:8px;
}

/* Hide default radio */
.radio-pill input{
    display:none;
}

/* Pill style */
.radio-pill{
    padding:10px 14px;
    border:1px solid #ddd;
    border-radius:25px;
    cursor:pointer;
    transition:0.2s;
    background:#fff;
    font-size:14px;
    text-transform: capitalize !important;
}

/* Hover */
.radio-pill:hover{
    border-color:#4f46e5;
    color:#4f46e5;
}

/* Selected */
.radio-pill input:checked + span{
    color:#fff;
}

.radio-pill input:checked{
    accent-color:#4f46e5;
}

/* Selected background using parent */
.radio-pill:has(input:checked){
    background:#4f46e5;
    border-color:#4f46e5;
    color:#fff;
}
/* ───────────────────────── Service Categories CSS End ───────────────────────── */

/* ───────────────────────── Custom Dataset Meta Form Start ───────────────────────── */
.meta-form {
    margin-top: 18px;
    border: 1.5px solid #e0e7ff;
    border-radius: 14px;
    overflow: hidden;
    animation: panFwd 0.3s ease both;
}

.meta-header {
    background: linear-gradient(135deg, #4f6ef7, #3a56e4);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.meta-header span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.meta-header small {
    font-size: 11.5px;
    color: rgba(255,255,255,0.75);
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #f8faff;
    padding: 16px;
    gap: 12px;
}

.meta-field { display: flex; flex-direction: column; gap: 5px; }
.meta-field--full { grid-column: 1 / -1; }

.meta-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.meta-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    color: var(--gray-900);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.meta-input:focus {
    border-color: var(--blue-1);
    box-shadow: 0 0 0 3px rgba(79,110,247,0.1);
}
.meta-textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
    border-radius: 10px;
}

@media (max-width: 500px) {
    .meta-grid { grid-template-columns: 1fr; }
}
/* ───────────────────────── Custom Dataset Meta Form End ───────────────────────── */

.meta-input.err {
    border-color: #ef4444;
}
.meta-ferr {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}
.meta-ferr.show {
    display: block;
}