:root {
    --primary-color: #0f5132;
    /* Madrasah Green */
    --secondary-color: #198754;
    --accent-color: #ffc107;
    --dark-bg: #0d1b1e;
    --light-bg: #f8f9fa;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html,
body {
    height: auto !important;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: visible !important;
}

/* Navbar */
.navbar {
    background: rgba(15, 81, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #092c1e);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    background-size: 50px 50px;
    top: -50%;
    left: -50%;
    opacity: 0.3;
    animation: floating 60s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

@keyframes floating {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.btn-premium {
    background: linear-gradient(45deg, var(--accent-color), #ffe066);
    color: #0b2c24;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 16px 40px;
    border-radius: 100px;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.5);
    color: #0b2c24;
}

.btn-premium i {
    transition: transform 0.3s ease;
}

.btn-premium:hover i {
    transform: translateX(5px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-glass i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-glass:hover i {
    transform: scale(1.2);
}

.btn-glass-warning {
    border-left: 4px solid var(--accent-color) !important;
}

.btn-glass-warning i {
    color: var(--accent-color);
}

.btn-glass-info {
    border-left: 4px solid #0dcaf0 !important;
}

.btn-glass-info i {
    color: #0dcaf0;
}

.btn-glass-success {
    border-left: 4px solid #20c997 !important;
}

.btn-glass-success i {
    color: #20c997;
}

/* Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Reusable Animated Background */
.bg-animated-madrasah {
    background: linear-gradient(135deg, var(--primary-color), #092c1e);
    position: relative;
}

.bg-animated-madrasah::before {
    content: '';
    position: fixed;
    /* Changed to fixed so it doesn't affect scroll height */
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    background-size: 50px 50px;
    top: -50%;
    left: -50%;
    opacity: 0.3;
    animation: floating 60s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.bg-animated-madrasah .container {
    position: relative;
    z-index: 2;
}

/* Glassmorphism Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Steps */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #adb5bd;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.step:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.step.active:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.4);
}

/* Countdown */
.countdown-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease-out;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 500;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transitions & Hover Effects */
.transition-all {
    transition: all 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.hover-translate-y-n3:hover {
    transform: translateY(-3px);
}

/* Pakta Integritas Modal */
.checklist-item {
    padding: 10px 15px;
    background: rgba(25, 135, 84, 0.05);
    border-radius: 10px;
    border-left: 3px solid #198754;
    line-height: 1.6;
}

.modal-lg {
    max-width: 700px;
}