﻿body {
    background: #f4fbf7;
    font-family: 'Segoe UI', sans-serif;
    --pm-accent: #1a6b3a;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(90deg, #1a6b3a, #28a745);
}

.navbar-brand, .nav-link {
    color: white !important;
}

    .nav-link:hover {
        color: #b8f0d0 !important;
    }

.navbar .user-menu .header-avatar,
    .navbar .user-menu img.header-avatar {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.85);
        box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
    }

.user-menu .dropdown-toggle {
    color: #fff !important;
}

@media (max-width: 767px) {
    .header-avatar {
        width: 34px;
        height: 34px;
    }

    .user-menu .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* CARD */
.card {
    border-radius: 20px;
    border: none;
}

/* STEPS */
.step {
    display: none;
}

    .step.active {
        display: block;
    }

.progress {
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, #1a6b3a, #28a745);
}

/* UPLOAD */
.upload-box {
    border: 2px dashed #1a6b3a;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: 0.3s;
}

    .upload-box:hover {
        background: #edf7f1;
    }

.preview-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a6b3a;
    margin-top: 10px;
}

/* BUTTONS */
.btn-primary {
    background: #1a6b3a;
    border: none;
}

    .btn-primary:hover {
        background: #0d5029;
    }

.btn-outline-primary {
    border-color: #1a6b3a;
    color: #1a6b3a;
}

    .btn-outline-primary:hover {
        background: #1a6b3a;
        color: white;
    }

/* FOOTER */
footer {
    background: linear-gradient(90deg, #1a6b3a, #28a745);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

/*Home page*/

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(10,56,30,0.87), rgba(26,107,58,0.85)), url('https://images.unsplash.com/photo-1529636798458-92182e662485?auto=format&fit=crop&w=1600&q=90');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.search-box {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
}

/* ===== STATS ===== */
.stats {
    background: linear-gradient(90deg, #e3f7ed, #f4fbf7);
    padding: 60px 0;
}

.stat-box h2 {
    color: #1a6b3a;
    font-weight: bold;
}

/* ===== FEATURED ===== */
.profile-card {
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

    .profile-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.profile-img {
    height: 250px;
    object-fit: cover;
}

/* ===== SECTION TITLE ===== */
.section-title {
    color: #1a6b3a;
    font-weight: bold;
}

/* ===== WHY SECTION ===== */
.why-box i {
    font-size: 45px;
    color: #1a6b3a;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(90deg, #1a6b3a, #28a745);
    color: white;
    padding: 70px 0;
    text-align: center;
}
/*Home page end*/

/*Reg Success*/
.success-card {
    border-radius: 12px;
    background: var(--pm-card-bg);
    padding: 2.25rem;
    box-shadow: 0 6px 30px rgba(18, 45, 77, 0.06);
}

.icon-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pm-accent), #74b9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(10,88,202,0.18);
}

h3.text-accent {
    color: var(--pm-accent);
    font-weight: 700;
}

.contact-box {
    background: rgba(26,107,58,0.05);
    border-radius: 10px;
    padding: 14px;
    margin-top: 18px;
}

footer.site-footer {
    background: linear-gradient(90deg, rgba(13, 107, 58, 0.95), rgba(26, 107, 58, 0.95));
    color: #fff;
    padding: 18px 0;
    margin-top: auto;
}

.btn-outline-accent {
    border-color: var(--pm-accent, #1a6b3a);
    color: var(--pm-accent, #1a6b3a);
    background-color: #fff;
}

    .btn-outline-accent:hover,
    .btn-outline-accent:focus,
    .btn-outline-accent:active {
        background-color: var(--pm-accent, #1a6b3a);
        border-color: var(--pm-accent, #1a6b3a);
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(26, 107, 58, 0.18);
    }

@@media (max-width: 576px) {
    .success-card {
        padding: 1.5rem;
    }
}
/*End Reg Success*/

/* Toast Notification System */
.toast-container.position-fixed {
    top: 24px !important;
    right: 24px !important;
    z-index: 10900 !important;
    max-width: 420px;
    width: auto;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .toast-container.position-fixed {
        top: calc(env(safe-area-inset-top, 0px) + 64px) !important;
        left: 12px !important;
        right: 12px !important;
        margin: 0 auto !important;
        max-width: calc(100% - 24px) !important;
        width: calc(100% - 24px) !important;
        padding: 0 !important;
    }
}

.toast.app-toast {
    pointer-events: auto;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(15, 30, 60, 0.16), 0 2px 8px rgba(15, 30, 60, 0.08) !important;
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.toast.app-toast .toast-body {
    word-break: break-word;
    font-size: 0.88rem;
    padding: 0.25rem 0.5rem;
}

.toast.app-toast .btn-close {
    opacity: 0.6;
    padding: 0.4rem;
    margin-left: auto;
    font-size: 0.8rem;
    transition: opacity 0.15s ease;
}

.toast.app-toast .btn-close:hover {
    opacity: 1;
}

/* Toast Color Themes */
.toast.toast-success,
.toast.text-bg-success {
    background-color: #f0fdf4 !important;
    color: #14532d !important;
    border: 1px solid #bbf7d0 !important;
}

.toast.toast-warning,
.toast.text-bg-warning {
    background-color: #fffbe6 !important;
    color: #78350f !important;
    border: 1px solid #fef08a !important;
}

.toast.toast-danger,
.toast.text-bg-danger {
    background-color: #fef2f2 !important;
    color: #7f1d1d !important;
    border: 1px solid #fecaca !important;
}

.toast.toast-info,
.toast.text-bg-info {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

/* Password Show/Hide Toggle Styles */
.toggle-password-btn {
    border-color: #bdcce2;
    background-color: #ffffff;
    color: #526785;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    z-index: 5;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover,
.toggle-password-btn:focus,
.toggle-password-btn:active {
    background-color: #f4f8fd;
    color: #17233c;
    border-color: #28a745;
    box-shadow: none;
    outline: none;
}

.password-toggle-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.password-toggle-group .toggle-password-btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Hide native browser password reveal/eye icons (Edge, IE, Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0 !important;
}

/* Date of Birth Year Picker Helper Styles */
.dob-input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.dob-input-group .dob-picker-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.dob-input-group .dob-year-select {
    flex: 0 0 auto;
    width: 115px;
    max-width: 38%;
    font-size: 0.88rem;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 500;
}

.dob-input-group .dob-year-select:focus {
    border-color: #6ee7b7;
    background-color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(26, 107, 58, 0.15);
}

/* Global Form Submit Spinner / Duplicate Submit Guard */
form[data-submitting="true"] button[type="submit"],
form[data-submitting="true"] input[type="submit"],
form[data-submitting="true"] input[type="image"],
button[type="submit"].is-submitting,
input[type="submit"].is-submitting {
    cursor: wait !important;
    opacity: 0.82;
    pointer-events: none;
}

button[type="submit"].is-submitting {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.submit-lock-spinner {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    flex: 0 0 auto;
}
