/* General Body and Font Styles */
    body {
        font-family: "Inter", sans-serif;
        background-color: #f3f4f6;
        margin: 0;
    }

    /* Main container for centering the form */
    .main-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0rem 1rem;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .header-top {
        border-bottom: 1px solid #f6f8fa;
        position: relative; /* ensure z-index works for children */
    }

    /* keep your existing inline-block layout */
    .header-top ul li {
        display: inline-block;
    }

    .header-top-left li,
    .header-top-right li {
        display: inline-block;
    }
    .header-top-right ul img {
        height: 60px;
        width: 430px;
        display: inline-block;
    }

    .required {
        color: red;
    }

    /* Form wrapper/card */
    .form-wrapper {
        width: 100%;
        max-width: 65rem; /* max-w-2xl */
        border-radius: 0.5rem; /* rounded-lg */
        background-color: white;
        padding: 1rem; /* p-10 */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
            0 4px 6px -4px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }

    /* Top image styling */
    .form-image {
        margin-bottom: 3rem; /* mb-12 */
        width: 100%;
        border-radius: 0.5rem;
    }

    /* Header section for title and description */
    .form-header {
        margin-bottom: 2rem; /* mb-8 */
        text-align: center;
    }

    .form-title {
        font-size: 1.875rem; /* text-2xl */
        font-weight: 600; /* font-semibold */
        color: #1f2937; /* text-gray-800 */
    }

    .form-description {
        margin-top: 0.5rem; /* mt-2 */
        font-size: 0.875rem; /* text-sm */
        color: #4b5563; /* text-gray-600 */
        line-height: 1.5;
    }

    /* Container for each form field group */
    .form-group {
        margin-bottom: 1.5rem; /* mb-6 */
    }

    /* Form labels */
    .form-label {
        display: block;
        margin-bottom: 0.5rem; /* mb-2 */
        font-size: 0.875rem; /* text-sm */
        font-weight: 500; /* font-medium */
        color: #4b5563; /* text-gray-600 */
    }

    /* Common styles for input, select, and textarea */
    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        border-radius: 0.375rem; /* rounded-md */
        border: 1px solid #d1d5db; /* border-gray-300 */
        padding: 0.75rem; /* p-3 */
        font-size: 0.875rem; /* text-sm */
        color: #1f2937; /* text-gray-800 */
        box-sizing: border-box;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        border-color: #6366f1; /* focus:border-indigo-500 */
        box-shadow: 0 0 0 1px #6366f1; /* focus:ring-1 focus:ring-indigo-500 */
        outline: none;
    }

    /* Donation Amount Radio Buttons */
    .donation-options {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .donation-options label,
    .payment-options label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #4b5563;
    }

    .form-radio {
        height: 1rem;
        width: 1rem;
        color: #4f46e5;
    }

    .other-amount-group {
        margin-top: 1rem;
    }

    .payment-options {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Consent Checkbox Group */
    .consent-group {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .form-checkbox {
        height: 1rem;
        width: 1rem;
        color: #4f46e5;
    }

    .consent-label {
        margin-left: 0.5rem;
        font-size: 0.875rem;
        color: #4b5563;
    }

    /* Submit Button */
    .submit-btn {
        width: 100%;
        border-radius: 0.375rem;
        background-color: #3c84f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
    }

    .submit-btn:hover {
        background-color: #4338ca;
        color: white;
    }

    .submit-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
        
    }

    .error-box{
        background:#fff;
        padding:40px;
        border-radius:12px;
        box-shadow:0 4px 20px rgba(0,0,0,0.1);
        text-align:center;
        width:400px;
    }

    .error-box h1{
        color:#dc3545;
        margin-bottom:15px;
    }

    .error-box p{
        color:#555;
        margin-bottom:25px;
    }

    .back-btn{
        display:inline-block;
        padding:10px 20px;
        background:#007bff;
        color:#fff;
        text-decoration:none;
        border-radius:6px;
        transition:0.3s;
    }

    .back-btn:hover{
        background:#0056b3;
    }

    .footer-menu {padding: 45px 0;}
    .footer-menu .navbar-header{padding:0;}
    .footer-menu .navbar-header a.navbar-brand,.footer-menu.footer-menu .navbar-header a.navbar-brand:hover,.footer-menu .navbar-header a.navbar-brand:focus{
        padding:0;
        height: 0;
    }
    .footer-menu ul.footer-menu-item{text-align: right;}
    .footer-menu ul.footer-menu-item li{display: inline-block;}
    .footer-menu ul.footer-menu-item li a {
        color: #859098;
        font-size: 10px;
        text-transform: uppercase;
        padding-left: 40px;
        -webkit-transition:0.3s linear;
        -moz-transition:0.3s linear;
        -o-transition:0.3s linear;
        transition:0.3s linear;
    }
    .footer-menu ul.footer-menu-item li a:hover{color: #f43032;}
    .hm-footer-copyright {
        padding: 20px 0;
        border-top: 1px solid #e1e5eb;
        margin-top: 2rem;
        text-align:center;      /* center everything */
    }

    .hm-footer-copyright .row{
        justify-content:center;
    }

    .hm-footer-copyright p,
    .hm-footer-copyright p a{
        color:#a5adb3;
        font-size:12px;
        font-weight:400;
        margin:0;
        line-height:1.8;
    }

    /* Mobile Responsive Styles */
    @media (max-width: 640px) {
        .main-container {
            padding: 1rem;
        }
        .form-wrapper {
            padding: 1.5rem;
        }
        .form-title {
            font-size: 1.5rem;
        }
        .donation-options,
        .payment-options {
            flex-direction: column;
            align-items: flex-start;
        }
    }