/* Base Styles */

:root {
    --navbar-height: 72px; /* adjust if navbar height changes */
}

/* Ensure page content starts below navbar */
.pt-navbar {
    padding-top: var(--navbar-height);
}

/* Make sure min-h-screen fills full height */
.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Keep navbar fixed */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}


body {
    font-family: 'Nunito', sans-serif !important;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

[data-theme=dark] body {
    background-color: #1f2333;
    color: #e5e7eb;
}

/* Navbar styles */
.navbar {
    background: linear-gradient(90deg, #1a2942 0%, #2c3e50 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

[data-theme=dark] .navbar {
    background: linear-gradient(90deg, #111827 0%, #1f2333 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme=dark] .navbar-scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
}

[data-theme=dark] .navbar .nav-link {
    color: rgba(229, 231, 235, 0.8) !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #64a49a;
    transition: all 0.3s;
    transform: translateX(-50%);
    opacity: 0;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 80%;
    opacity: 1;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
}

[data-theme=dark] .navbar .nav-link:hover,
[data-theme=dark] .navbar .nav-link.active {
    color: #e5e7eb !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4e717f 0%, #2c3e50 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

[data-theme=dark] .hero-section {
    background: linear-gradient(135deg, #1f2333 0%, #111827 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: 100% 100px;
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

[data-theme=dark] .hero-section::before {
    opacity: 0.4;
}

.hero-logo {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: all 0.5s cubic-bezier(.25, .8, .25, 1);
    max-height: 200px;
    animation: floating 4s ease-in-out infinite;
}

[data-theme=dark] .hero-logo {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.hero-text h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

[data-theme=dark] .hero-text h1 {
    color: #e5e7eb;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

[data-theme=dark] .features-section {
    background-color: #1f2333;
}

.feature-card {
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

[data-theme=dark] .feature-card {
    background-color: #272b3f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

[data-theme=dark] .feature-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

[data-theme=dark] .feature-icon {
    background-color: #4b5563;
    color: #e5e7eb;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

/* Form section */
.form-section {
    padding: 5rem 0;
    background-color: #f8fafc;
    position: relative;
    margin-top: 0.4rem; /* ✅ add this for space below navbar */
}

[data-theme=dark] .form-section {
    background-color: #1f2333;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;

}



.form-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme=dark] .form-card {
    background-color: #272b3f;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-card .card-body {
    padding: 0;
}

[data-theme=dark] .form-card .card-body {
    color: #e5e7eb;
}

.form-sidebar {
    background: linear-gradient(135deg, #4e717f 0%, #2c3e50 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-theme=dark] .form-sidebar {
    background: linear-gradient(135deg, #1f2333 0%, #111827 100%);
}

.form-sidebar img {
    max-width: 80%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

[data-theme=dark] .form-sidebar img {
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.form-sidebar:hover img {
    transform: scale(1.05);
}

.form-sidebar h3 {
    color: #8ca7ad !important;
}

[data-theme=dark] .form-sidebar h3 {
    color: #9ca3af !important;
}

.input-group-text {
    background-color: #f8fafc;
    color: #64a49a;
}

[data-theme=dark] .input-group-text {
    background-color: #272b3f;
    color: #64a49a;
    border-color: #4b5563;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #ced4da;
}

[data-theme=dark] .form-control,
[data-theme=dark] .form-select {
    background-color: #272b3f;
    color: #e5e7eb;
    border-color: #fff;
}

[data-theme=dark] .form-control:focus,
[data-theme=dark] .form-select:focus {
    border-color: #f1f1f1;
    box-shadow: 0 0 0 3px rgba(100, 164, 154, 0.2);
}

/* Accordion FAQ section */
.faq-section {
    padding: 5rem 0;
    background-color: #fff;
}

[data-theme=dark] .faq-section {
    background-color: #1f2333;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme=dark] .accordion-item {
    background-color: #272b3f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme=dark] .accordion-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
}

[data-theme=dark] .accordion-button {
    background-color: #272b3f;
    color: #e5e7eb;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(100, 164, 154, 0.1);
    color: #64a49a;
    box-shadow: none;
}

[data-theme=dark] .accordion-button:not(.collapsed) {
    background-color: rgba(100, 164, 154, 0.2);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(100, 164, 154, 0.2);
}

[data-theme=dark] .accordion-button:focus {
    border-color: rgba(100, 164, 154, 0.3);
}

/* Footer section */
.footer {
    background: linear-gradient(90deg, #1a2942 0%, #2c3e50 100%);
    padding: 3rem 0;
}

[data-theme=dark] .footer {
    background: linear-gradient(90deg, #111827 0%, #1f2333 100%);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    text-decoration: none;
}

[data-theme=dark] .footer a {
    color: rgba(229, 231, 235, 0.7);
}

.footer a:hover {
    color: #ffffff;
}

[data-theme=dark] .footer a:hover {
    color: #e5e7eb;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    transition: all 0.3s;
}

[data-theme=dark] .social-icons a {
    background-color: rgba(229, 231, 235, 0.1);
}

.social-icons a:hover {
    background-color: #64a49a;
    transform: translateY(-3px);
}

/* Button styles */
.btn-primary {
    background-color: #64a49a;
    border-color: #64a49a;
}

[data-theme=dark] .btn-primary {
    background-color: #64a49a;
    border-color: #64a49a;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4e717f;
    border-color: #4e717f;
    box-shadow: 0 4px 15px rgba(100, 164, 154, 0.4);
    transform: translateY(-2px);
}

[data-theme=dark] .btn-primary:hover,
[data-theme=dark] .btn-primary:focus {
    background-color: #4e717f;
    border-color: #4e717f;
    box-shadow: 0 4px 15px rgba(100, 164, 154, 0.5);
}

.btn-outline-light:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

[data-theme=dark] .btn-outline-light {
    color: #e5e7eb;
    border-color: #4b5563;
}

[data-theme=dark] .btn-outline-light:hover {
    background-color: #272b3f;
    color: #e5e7eb;
    box-shadow: 0 4px 15px rgba(229, 231, 235, 0.3);
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

[data-theme=dark] .is-invalid {
    border-color: #f87171;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f87171'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f87171' stroke='none'/%3e%3c/svg%3e");
}

.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

[data-theme=dark] .is-valid {
    border-color: #34d399;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2334d399' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

[data-theme=dark] .invalid-feedback {
    color: #f87171;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #64a49a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

[data-theme=dark] .back-to-top {
    background-color: #64a49a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: #4e717f;
    transform: translateY(-3px);
}

[data-theme=dark] .back-to-top:hover {
    background-color: #4e717f;
}

/* Responsive styles */
@media (max-width: 991px) {
    .hero-text {
        text-align: center;
        margin-bottom: 3rem;
    }

    .navbar .navbar-nav {
        margin-top: 1rem;
    }

    .navbar .nav-link::after {
        bottom: 0;
        left: 0;
        transform: none;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        width: 30px;
    }

    .form-sidebar {
        border-radius: 16px 16px 0 0;
        padding: 2rem 1rem;
    }
}

/* Password strength meter */
.password-strength-meter {
    margin-top: 8px;
}

.strength-bar {
    height: 6px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 4px;
    overflow: hidden;
    position: relative;
}

[data-theme=dark] .strength-bar {
    background: #4b5563;
}

.strength-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 0;
    background-color: red;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.9em;
    font-weight: 500;
}

[data-theme=dark] .strength-text {
    color: #e5e7eb;
}

.strength-0 .strength-bar::after { width: 20%; background-color: #d9534f; }
.strength-1 .strength-bar::after { width: 40%; background-color: #f0ad4e; }
.strength-2 .strength-bar::after { width: 60%; background-color: #f7e600; }
.strength-3 .strength-bar::after { width: 80%; background-color: #5bc0de; }
.strength-4 .strength-bar::after { width: 100%; background-color: #5cb85c; }

[data-theme=dark] .strength-0 .strength-bar::after { background-color: #f87171; }
[data-theme=dark] .strength-1 .strength-bar::after { background-color: #fb923c; }
[data-theme=dark] .strength-2 .strength-bar::after { background-color: #facc15; }
[data-theme=dark] .strength-3 .strength-bar::after { background-color: #38bdf8; }
[data-theme=dark] .strength-4 .strength-bar::after { background-color: #34d399; }