/* ═══════════════════════════════════════════
   GLOBAL RESET & TYPOGRAPHY
═══════════════════════════════════════════ */
body.rp-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: #f8fafb !important;
    min-height: 100vh;
    overflow-x: hidden;
    color: #212529;
}

/* ═══════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════ */
.rp-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.rp-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}
.rp-navbar .container { max-width: 1200px; }
.rp-navbar-brand { display: flex; align-items: center; text-decoration: none; }
.rp-navbar-brand img {
    height: 44px; width: auto;
    transition: filter 0.3s;
}

.rp-nav-link {
    color: #6c757d !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem !important;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.rp-nav-link:hover {
    color: #0d6efd !important;
    background: rgba(13, 110, 253, 0.05);
}
.rp-nav-link.active-link {
    color: #0d6efd !important;
    background: rgba(13, 110, 253, 0.1);
}
.rp-nav-login {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: #fff !important;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1.25rem !important;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
    display: inline-block;
}
.rp-nav-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.rp-hero {
    padding: 4rem 0 2.5rem;
    text-align: center;
}
.rp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: fadeDown 0.5s ease both;
}

.rp-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeDown 0.6s 0.1s ease both;
}
.rp-hero-title span {
    color: #0d6efd;
}
.rp-hero-sub {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    animation: fadeDown 0.6s 0.2s ease both;
}

.rp-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    animation: fadeDown 0.6s 0.3s ease both;
}
.rp-stat-item { text-align: center; }
.rp-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}
.rp-stat-label {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════
   MAIN CARD
═══════════════════════════════════════════ */
.rp-card-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
    animation: fadeUp 0.6s 0.35s ease both;
}
.rp-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.03);
}
.rp-card-inner { padding: 2.5rem; }

/* ═══════════════════════════════════════════
   WIZARD STEPPER
═══════════════════════════════════════════ */
.rp-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.rp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}
.rp-step-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid #e9ecef;
    background: #fff;
    color: #adb5bd;
    transition: all 0.4s ease;
    position: relative;
}
.rp-step.active .rp-step-circle {
    background: #fff;
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.1);
}
.rp-step.done .rp-step-circle {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.rp-step-label {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: color 0.4s;
}
.rp-step.active .rp-step-label { color: #212529; }
.rp-step.done .rp-step-label { color: #0d6efd; }

.rp-step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin-top: -30px; /* Adjusted for larger circle */
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 3px;
}
.rp-step-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: #0d6efd;
    transition: width 0.5s ease;
    border-radius: 3px;
}
.rp-step-line.done::after { width: 100%; }

/* ═══════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════ */
.rp-field-group { margin-bottom: 1.25rem; }
.rp-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.rp-label .req { color: #dc3545; margin-left: 2px; }

.rp-input,
.rp-select,
.rp-textarea {
    width: 100%;
    background: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 10px !important;
    color: #212529 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.25s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.rp-input:focus,
.rp-select:focus,
.rp-textarea:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
}
.rp-input.is-invalid,
.rp-select.is-invalid,
.rp-textarea.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}
.rp-textarea { resize: vertical; min-height: 120px; }
.rp-invalid-msg {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: none;
}
.rp-input.is-invalid ~ .rp-invalid-msg,
.rp-select.is-invalid ~ .rp-invalid-msg,
.rp-textarea.is-invalid ~ .rp-invalid-msg {
    display: block;
}

.rp-select-wrap { position: relative; }
.rp-select-wrap::after {
    content: '\F633'; /* bi-chevron-down */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   INFO CHIPS
═══════════════════════════════════════════ */
.rp-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
}

/* ═══════════════════════════════════════════
   STEP HEADER
═══════════════════════════════════════════ */
.rp-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.rp-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rp-step-title i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0d6efd;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════════ */
.rp-upload-zone {
    border: 2px dashed #0d6efd;
    border-radius: 20px;
    background: #f4f8ff;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rp-upload-zone:hover,
.rp-upload-zone.drag-over {
    background: #ebf3ff;
    border-color: #0a58ca;
}
.rp-upload-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}
.rp-upload-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.35rem;
}
.rp-upload-sub {
    font-size: 0.85rem;
    color: #6c757d;
}
.rp-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    transition: all 0.2s;
    border: none;
}
.rp-upload-btn:hover {
    background: #0b5ed7;
}

/* File items */
.rp-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafb;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}
.rp-file-item:hover { transform: translateX(5px); border-color: #0d6efd; }
.rp-file-name { flex: 1; font-size: 0.9rem; color: #212529; font-weight: 500; }
.rp-file-size { font-size: 0.8rem; color: #6c757d; }
.rp-file-remove {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.rp-file-remove:hover { color: #dc3545; }

/* Summary card */
.rp-summary {
    background: #f8fafb;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.rp-summary-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rp-summary-row {
    display: flex;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}
.rp-summary-row:last-child { border-bottom: none; }
.rp-summary-key { color: #6c757d; min-width: 140px; }
.rp-summary-val { color: #212529; font-weight: 600; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.rp-btn-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}
.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.rp-btn-back {
    background: #fff;
    color: #6c757d;
    border: 1px solid #ced4da;
}
.rp-btn-back:hover {
    background: #f8fafb;
    color: #212529;
    border-color: #adb5bd;
}
.rp-btn-next {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}
.rp-btn-next:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}
.rp-btn-submit {
    background: #198754;
    color: #fff;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
}
.rp-btn-submit:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

/* ═══════════════════════════════════════════
   SUCCESS SCREEN
═══════════════════════════════════════════ */
.rp-success {
    text-align: center;
    padding: 2rem 0;
}
.rp-success-anim {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #198754;
    animation: popIn 0.5s cubic-bezier(.175,.885,.32,1.275) both;
}
.rp-success-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}
.rp-success-sub {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.rp-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f8ff;
    border: 1px solid #d1e7ff;
    color: #0d6efd;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.rp-footer {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
    background: #fff;
    padding: 2rem 0;
}
.rp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.rp-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rp-footer-brand i { font-size: 1.5rem; color: #0d6efd; }
.rp-footer-name { font-size: 0.95rem; font-weight: 700; color: #111827; }
.rp-footer-sub { font-size: 0.8rem; color: #6b7280; }

.rp-footer-links { display: flex; gap: 1.5rem; }
.rp-footer-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.rp-footer-link:hover { color: #0d6efd; }
.rp-footer-link.current { color: #0d6efd; font-weight: 600; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.rp-wizard-step { animation: fadeUp 0.35s ease both; }

@media (max-width: 768px) {
    .rp-card-inner { padding: 1.5rem; }
    .rp-stepper { margin-bottom: 1.5rem; }
    .rp-step-circle { width: 44px; height: 44px; font-size: 1rem; }
    .rp-step-line { margin-top: -25px; }
    .rp-step-label { font-size: 0.65rem; }
    .rp-hero { padding: 2.5rem 0 1.5rem; }
    .rp-footer-inner { flex-direction: column; text-align: center; }
}
