 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
        }

        /* Header Styles */
        .header {
            background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .header-top {
            background: rgba(0,0,0,0.2);
            padding: 0.5rem 0;
            font-size: 0.9rem;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 16px;
            width: 100%;
        }

        .header-top-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .contact-info span {
            margin-right: 20px;
        }

        .social-links a {
            color: white;
            margin-left: 10px;
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: #f39c12;
        }

        .header-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: bold;
        }

        .logo i {
            margin-right: 10px;
            color: #f39c12;
        }

        /* Navigation */
        .nav {
            display: flex;
            list-style: none;
            margin: 0;
        }

        .nav li {
            margin-left: 20px;
        }

        .nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
            cursor: pointer;
        }

        .nav a:hover {
            color: #f39c12;
        }

        .donate-btn {
            background: #e74c3c;
            padding: 10px 20px;
            border-radius: 25px;
            transition: all 0.3s;
        }

        .donate-btn:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        /* Mobile Menu */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Main Content */
        .main-content {
            margin-top: 140px;
        }
@media (max-width: 768px) {
  .main-content { margin-top: 120px; }
}
@media (max-width: 480px) {
  .main-content { margin-top: 110px; }
}

        /* Page Styles */
        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* Hero Section */
        /* Hero Section */
.hero {
    position: relative;
    height: 70vh; /* taller on desktop */
    min-height: 420px;
    max-height: 720px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
}

/* Slider wrapper */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

/* Show first slide by default */
.hero-slide:first-child {
    opacity: 1;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* Slide images */
.hero-image {
        width: 100%;
    height: 50%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero { height: 52vh; min-height: 300px; max-height: 520px; }
    .hero-image { object-fit: cover; background-color: transparent; }
}
@media (max-width: 480px) {
    .hero { height: 48vh; min-height: 260px; max-height: 480px; }
    .hero-image { object-fit: cover; background-color: transparent; }
}

/* Overlay and text */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


        .hero-buttons {
            animation: fadeInUp 1s ease 0.4s both;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            margin: 0 10px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background: #e74c3c;
            color: white;
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }
        
        /* Review / Final Step styling */
        .review-card {
            background: #fff;
            border: 1px solid #e6e6e6;
            border-radius: 6px;
            padding: 14px;
            margin-bottom: 16px;
        }
        .review-card h5 {
            margin: 0 0 12px 0;
            font-size: 16px;
            color: #2c3e50;
        }
        .review-row {
            display: grid;
            grid-template-columns: 140px 1fr;
            gap: 8px 16px;
            align-items: start;
            padding: 10px 0;
            border-top: 1px solid #f1f1f1;
        }
        .review-row:first-of-type { border-top: 0; padding-top: 0; }
        .review-label {
            color: #6b7280;
            font-weight: 600;
            font-size: 13px;
        }
        .review-val {
            color: #222;
            font-size: 14px;
            word-break: break-word;
        }
        .review-img { max-width: 120px; max-height: 90px; border-radius: 4px; border: 1px solid #ddd; display: inline-block; }
        .review-images { display: flex; gap: 12px; align-items: center; }
        
        /* Tweak buttons in final step to match screenshot */
        .form-actions .btn-secondary {
            background: #8f9a9a !important;
            color: #fff !important;
            border: none !important;
            padding: 10px 18px !important;
            border-radius: 6px !important;
        }
        .form-actions .btn-success {
            background: #2ecc71 !important;
            border: none !important;
            color: #fff !important;
            padding: 10px 18px !important;
            border-radius: 6px !important;
        }
        
        @media (max-width: 768px) {
            .review-row { grid-template-columns: 120px 1fr; }
        }
        
        @media (max-width: 480px) {
            .custom-alert { min-width: 220px; padding: 10px 12px; font-size: 13px; }
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        /* Sections */
        .section {
            padding: 0 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        .section-title p {
            font-size: 1.2rem;
            color: #7f8c8d;
            max-width: 600px;
            margin: 0 auto;
        }

        /* About Section */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text h3 {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: #555;
            line-height: 1.8;
        }

        .about-image {
            text-align: center;
        }

        .about-image img {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        /* Stats Section */
        .stats {
            background: #3498db;
            color: white;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            text-align: center;
        }

        .stat-item h3 {
            font-size: 3rem;
            margin-bottom: 0.5rem;
        }

        .stat-item p {
            font-size: 1.2rem;
        }

        /* Programs Section */
        .programs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .program-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .program-card:hover {
            transform: translateY(-5px);
        }

        .program-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .program-card-content {
            padding: 2rem;
        }

        .program-card h3 {
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        .program-card p {
            color: #555;
            margin-bottom: 1.5rem;
        }

        /* News Section */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .news-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .news-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .news-card-content {
            padding: 1.5rem;
        }

        .news-meta {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .news-card h3 {
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        /* Contact Form */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .contact-info h3 {
            margin-bottom: 1rem;
            color: #2c3e50;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .contact-item i {
            width: 40px;
            height: 40px;
            background: #3498db;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #ecf0f1;
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #3498db;
        }

        /* Gallery */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
        }

        .gallery-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            transition: transform 0.3s;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        /* Footer */
        .footer {
            background: #2c3e50;
            color: white;
            padding: 60px 0 20px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h3 {
            margin-bottom: 1.5rem;
            color: #f39c12;
        }

        .footer-section a {
            color: #bdc3c7;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: white;
        }

        .footer-bottom {
            border-top: 1px solid #34495e;
            padding-top: 20px;
            text-align: center;
            color: #bdc3c7;
        }

        /* Donation Form */
        .donation-amounts {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 2rem;
        }

        .amount-btn {
            padding: 15px;
            border: 2px solid #3498db;
            background: white;
            color: #3498db;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: bold;
        }

        .amount-btn:hover,
        .amount-btn.active {
            background: #3498db;
            color: white;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: #2c3e50;
                flex-direction: column;
                padding: 20px;
            }

            .nav.active {
                display: flex;
            }

            .nav li {
                margin: 10px 0;
            }

            .hero-content h1 {
                font-size: 2.5rem;
            }

            .about-grid,
            .contact-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .header-top-content {
                flex-direction: column;
                gap: 10px;
            }

            /* Events/Programs responsive */
            .programs-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .program-card img {
                height: 150px;
            }

            .program-card-content {
                padding: 1.5rem 1rem;
            }

            .news-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .footer-grid {
                grid-template-columns: 1fr;
            }

            .hero-content h1 {
                font-size: 2rem;
            }

            .donation-amounts {
                grid-template-columns: 1fr;
            }

            /* Mobile events/programs */
            .programs-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .program-card img {
                height: 120px;
            }

            .program-card-content {
                padding: 1rem;
            }

            .program-card h3 {
                font-size: 1rem;
                margin-bottom: 0.5rem;
            }

            .program-card p {
                font-size: 0.9rem;
                margin-bottom: 1rem;
            }

            .news-grid {
                grid-template-columns: 1fr;
            }

            .news-card img {
                height: 150px;
            }
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 2000;
        }

        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 2rem;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 2rem;
            cursor: pointer;
            color: #999;
        }

        /* Success Message */
        .success-message {
            background: #2ecc71;
            color: white;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 1rem;
            display: none;
        }

/* Utilities added to replace inline styles in templates */
.login-link {
    margin-right: 10px;
    color: #fff;
    text-decoration: none;
}

.invisible-heading {
    visibility: hidden;
    height: 1.2em;
    margin-bottom: 1.5em;
}

.form-row-10 { margin-bottom: 10px; }
.form-row-15 { margin-bottom: 15px; }
.input-full { width: 100%; padding: 10px; border: none; border-radius: 5px; }

.mt-10-important { margin-top: 10px !important; }
.mt-20 { margin-top: 20px; }

.video-iframe { height: 350px; display: block; border-radius: 10px; }
@media (max-width: 768px){ .video-iframe { height: 240px; } }
@media (max-width: 480px){ .video-iframe { height: 200px; } }
.donate-box { max-width: 260px; width: 100%; }
.donate-qr { max-width: 220px; display: block; margin: 1rem auto; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 70px; justify-content: center; }
.gallery-item-center { text-align: center; }
.gallery-link { display: inline-block; text-decoration: none; color: inherit; }
.gallery-thumb { width: 360px; height: 240px; object-fit: cover; border-radius: 5px; display: block; }
.gallery-title { margin-top: 8px; font-size: 16px; font-weight: 600; color: #000; }
.gallery-meta { font-size: 14px; color: #666; margin-top: 3px; }

.event-header-content { text-align: center; }
.event-body-open { display: block; }

.video-donate-wrapper { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.video-container { flex: 1 1 500px; min-width: 260px; }
.donate-container { flex: 0 0 280px; }
@media (max-width: 768px){ .donate-container { flex: 1 1 100%; } }
.video-thumbnail iframe { border-radius: 10px; display: block; width: 100%; }

.program-card { padding: 15px; border: 1px solid #eee; border-radius: 8px; background: #fff; text-align: center; transition: transform 0.3s; }
.program-card img { max-width: 100%; border-radius: 5px; display: block; margin: 0 auto; }
.text-center { text-align: center; }
/* small helper for buttons spacing */
.btn-margin-5 { margin: 5px; }

/* gallery small thumb */
.gallery-thumb-sm { width: 300px; height: 200px; border-radius: 6px; object-fit: cover; }

/* muted small text */
.text-muted { color: #777; }

/* contact cards grid */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.single-contact { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.single-contact:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

/* simple utility for list indents */
.list-indent { margin-left: 20px; margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
/* small muted paragraph used in donate section */
.muted-small { margin-top: 15px; font-size: 0.9em; color: #666; }

/* Vertical news slider */
.vertical-news-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    height: 520px; /* sensible default, not full viewport */
    
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.vertical-news-slider .news-track {
    display: block;
    padding-bottom: 80px; /* ताकि last slide पूरी दिखे */
}

.vertical-news-slider .news-slide {
    display: block;
    box-sizing: border-box;
    padding: 8px 15px;
    min-height: 480px; /* align with container height */
}

.vertical-news-slider .news-card {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: block;
}

.vertical-news-slider .news-author {
    padding: 10px 16px;
    color: #666;
    font-size: 0.95rem;
    display: block;
}

.vertical-news-slider .news-card img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.vertical-news-slider .news-card .news-card-content { 
    padding: 12px 16px 18px 16px; 
}

.vertical-news-slider .news-card .news-card-content h3 { 
    margin: 6px 0 8px 0; 
    font-size: 1.35rem; 
    color: #2c3e50; 
}

.vertical-news-slider .news-card .news-card-content .news-meta { 
    color: #7f8c8d; 
    font-size: 0.95rem; 
    margin-bottom: 8px; 
    display: flex; 
    gap: 12px; 
    align-items: center; 
}

.vertical-news-slider .news-card .news-card-content .news-excerpt { 
    margin: 0 0 12px 0; 
    color: #555; 
    line-height: 1.5; 
    max-height: 4.5em; 
    overflow: hidden; 
}

.vertical-news-slider .news-card .news-card-content .read-more { 
    padding: 8px 14px; 
    font-size: 0.95rem; 
}

.vertical-news-slider .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.vertical-news-slider .controls button {
    margin: 0;
    min-width: 120px;
    padding: 8px 12px !important;
}
@media (max-width: 480px) {
    .vertical-news-slider .controls { gap: 8px; }
    .vertical-news-slider .controls button { flex: 1; min-width: 0; }
}

/* News box title and footer */
.news-box-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2c3e50;
    max-width: 900px;
    margin: 0 auto 10px auto;
    padding: 6px 12px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 14px 12px;
    max-width: 900px;
    margin: 8px auto 0 auto;
}

.news-footer .news-footer-views {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.news-footer a.btn-link { 
    color: #3498db; 
    text-decoration: none; 
}

/* External actions bar for news (when button is outside slider) */
.news-external-actions { padding: 6px 12px; }
.news-external-actions .news-footer-views { color:#7f8c8d; }
.news-external-actions a.btn-primary { margin: 0; }

/* Pagination styling */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.page-item { list-style: none; }
.page-link { display: inline-block; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; color: #3498db; text-decoration: none; background: #fff; }
.page-item.active .page-link { background: #3498db; color: #fff; border-color: #3498db; }
.page-link:hover { background: #f0f8ff; }


/* Modal for full article */
.modal-full {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.modal-full .modal-box {
    background: white;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 8px;
    padding: 20px;
}
.modal-close-btn { float: right; cursor: pointer; font-size: 1.2rem; color: #333; }

@media (max-width: 768px) {
    .vertical-news-slider { height: 440px; }
    .vertical-news-slider .news-slide { min-height: 440px; }
    .vertical-news-slider .news-card img { width: 100%; max-height: 200px; height: auto; object-fit: cover; }
}
@media (max-width: 480px) {
    .vertical-news-slider { height: 400px; }
    .vertical-news-slider .news-slide { min-height: 400px; }
    .vertical-news-slider .news-card img { max-height: 180px; }
}

        
/* Form Container Fix */
.registration-container {
    max-width: 700px !important;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin: 160px auto 40px auto !important; /* Header overlap fix */
}

/* Step Box */
.step-box {
    display: none;
}
.step-box.active {
    display: block;
}

/* Labels Fix */
.registration-container label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: block;
}

/* Row and Column Layout */
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.col-md-12 {
    grid-column: span 12;
}

.col-md-6 {
    grid-column: span 6;
}

.col-md-4 {
    grid-column: span 4;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

.mb-3 {
    margin-bottom: 15px;
}

/* Inputs */
.registration-container .form-control {
    border-radius: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.registration-container .form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.registration-container textarea {
    height: 90px;
    resize: vertical;
}

/* Required error highlight */
.error-input {
    border-color: red !important;
}
.error-text {
    color: red;
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

/* Image Preview Box Fix */
.img-preview {
    max-width: 130px;
    max-height: 130px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: none;
    margin-top: 8px;
}

/* Step Titles */
.step-box h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.registration-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Buttons Fix */
.btn {
    padding: 12px 20px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
}

.btn-primary {
    background: #3498db !important;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: #2980b9 !important;
}

.btn-secondary {
    background: #7f8c8d !important;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #6c7a7d !important;
}

.btn-success {
    background: #27ae60 !important;
    color: white;
    cursor: pointer;
}

.btn-success:hover {
    background: #229954 !important;
}

.float-end {
    float: right;
}

/* Review Card */
.review-label {
    font-weight: bold;
    color: #666;
}
.review-row {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.card {
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.card p {
    margin: 0;
    padding: 10px 0;
}

.text-primary {
    color: #3498db;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #7f8c8d;
}

.mt-2 {
    margin-top: 15px;
}

.mt-3 {
    margin-top: 20px;
}

.p-3 {
    padding: 15px;
}

/* Success Message */
#step4 h3 {
    text-align: center;
}
#step4 .alert {
    font-size: 16px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .col-md-6 {
        grid-column: span 6;
    }
    .col-md-12 {
        grid-column: span 12;
    }
}

/* Payment Method Styles */
.payment-method-selector {
    display: flex;
    flex-direction: column;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.payment-option:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.payment-option input[type="radio"] {
    cursor: pointer;
    accent-color: #3498db;
}

.payment-option label {
    cursor: pointer;
    flex: 1;
    margin-left: 8px;
}

.payment-section {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .registration-container {
        max-width: 100% !important;
        padding: 20px;
        margin: 160px 15px 40px 15px !important;
    }

    .row {
        gap: 15px;
    }

    .col-md-6 {
        grid-column: span 12 !important;
    }

    .col-md-12 {
        grid-column: span 12;
    }

    .col-6 {
        grid-column: span 6;
    }

    .step-box h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .registration-container h2 {
        font-size: 22px;
    }

    .btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    .float-end {
        float: none;
        display: block;
        margin-top: 10px;
        width: 100%;
    }

    .btn-secondary {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .card {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .registration-container {
        max-width: 100% !important;
        padding: 15px;
        margin: 160px 10px 40px 10px !important;
    }

    .row {
        gap: 12px;
    }

    .col-md-6,
    .col-6 {
        grid-column: span 12 !important;
    }

    .col-md-12 {
        grid-column: span 12;
    }

    .registration-container .form-control {
        padding: 8px 10px;
        font-size: 13px;
    }

    .registration-container label {
        font-size: 13px;
    }

    .step-box h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .registration-container h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
        /*width: 100% !important;*/
        margin-bottom: 8px !important;
    }

    .float-end {
        float: none;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .img-preview {
        max-width: 100px;
        max-height: 100px;
    }

    .mt-2 {
        margin-top: 10px;
    }
}

/* Standardize action buttons layout used in forms/review steps */
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.form-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Profile page specific styles */
.profile-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.profile-photo {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 3px solid #f0ad4e;
    object-fit: cover;
    display: inline-block;
}
.profile-name { margin-bottom: 6px; font-size: 1.25rem; }
.profile-id { color: #666; margin-bottom: 12px; }
.referral-box { background: #f8f9fa; padding: 12px; border-radius: 6px; margin-bottom: 12px; }
.ref-label { margin: 0; color: #999; font-size: 12px; }
.ref-code { font-weight: 700; font-size: 16px; margin: 0; }
.download-btn { width: 100%; padding: 10px; }

.profile-details { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 20px; }
.profile-details h4 { margin-bottom: 14px; border-bottom: 2px solid #f0ad4e; padding-bottom: 8px; }
.profile-info-grid .label { color: #999; font-size: 12px; text-transform: uppercase; margin-bottom: 6px; }
.profile-info-grid .value { font-size: 15px; }

.team-section { background: white; padding: 18px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.team-member-card { border: 1px solid #eee; padding: 12px; border-radius: 6px; display: flex; gap: 12px; align-items: center; }
.team-photo { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; border: 2px solid #f0ad4e; }
.team-name { margin: 0; font-weight: 700; }
.team-id { margin: 4px 0 0; color: #666; font-size: 13px; }
.empty-team { text-align: center; color: #999; padding: 30px 0; }

/* Make sure footer doesn't overlap and add spacing */
.main-content { margin-top: 140px; margin-bottom: 80px; }

@media (max-width: 768px) {
    .profile-photo { max-width: 160px; }
    .profile-card { padding: 18px; }
    .profile-details { padding: 16px; }
}

@media (max-width: 480px) {
    .profile-photo { max-width: 140px; }
    .download-btn { padding: 12px; }
}

@media (max-width: 480px) {
    .form-actions { gap: 8px; }
    .form-actions .btn { min-width: 100%; }
}

/* Custom alert / toast styles */
.custom-alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    pointer-events: none;
}
.custom-alert {
    pointer-events: auto;
    min-width: 280px;
    max-width: 95vw;
    margin: 8px auto;
    background: #fff;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    display: flex;
    gap: 12px;
    align-items: center;
    font-weight: 500;
    animation: slideDownFade 0.35s ease;
}
.custom-alert.success { border-left: 6px solid #27ae60; }
.custom-alert.error { border-left: 6px solid #e74c3c; }
.custom-alert .alert-icon { font-size: 18px; }
.custom-alert .alert-msg { flex: 1; font-size: 14px; }
.custom-alert .alert-close { cursor: pointer; color: #666; padding-left: 8px; }

@keyframes slideDownFade {
    from { transform: translateX(-50%) translateY(-6px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
    .custom-alert { min-width: 220px; padding: 10px 12px; font-size: 13px; }
}