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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f6f7fb;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2d3142;
    font-size: 24px;
    font-weight: 700;
    justify-content: flex-start;
}

.navbar-brand i {
    font-size: 28px;
    color: #4CAF50;
}

.navbar-toggler {
    border: none;
    padding: 5px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    font-size: 24px;
    color: #2d3142;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #2d3142;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
}

.nav-link:not(.btn-outline):not(.btn-primary):hover {
    color: #4CAF50;
    background-color: #f8f9fa;
}

.nav-link.btn-outline {
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.nav-link.btn-outline:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

.nav-link.btn-primary {
    background-color: #4CAF50;
    color: #ffffff;
}

.nav-link.btn-primary:hover {
    background-color: #45a049;
    color: #ffffff;
}

/* Dropdown Arrow */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(90deg);
}

.payment-page {
    padding-top: 110px;
    padding-bottom: 60px;
    width: 50vw;
    max-width: 720px;
    margin: 0 auto;
}

.payment-hero {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(45, 49, 66, 0.1));
    padding: 32px 10px 32px 25px;
}

.payment-hero-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3142;
}

.payment-hero-content p {
    font-size: 16px;
    color: #4a4f63;
    margin-top: 8px;
}

.payment-section {
    margin-top: 0;
    background: #ffffff;
    padding: 0 0 40px;
}

.payment-section .container {
    max-width: 720px;
    width: 50vw;
}
.payment-card {
    background: #ffffff;
    border-radius: 0;
    padding: 32px;
    box-shadow: none;
}

.payment-card-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3142;
}

.payment-card-header p {
    color: #4a4f63;
    margin-top: 6px;
}

.form-section {
    margin-top: 28px;
}

.is-hidden {
    display: none;
}

.ain-lookup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ain-lookup-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(45, 49, 66, 0.06);
}

.ain-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    color: #198754;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ain-lookup-field .form-control {
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 16px;
}

.ain-lookup-field .form-control:focus {
    box-shadow: none;
}

.ain-lookup-field .btn {
    padding: 10px 18px;
    border-radius: 4px;
    white-space: nowrap;
    background-color: rgb(76, 175, 80);
    color: #ffffff;
}

.ain-lookup-field .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error Message Styling */
.error-message {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.error-message i {
    font-size: 18px;
    flex-shrink: 0;
}

.error-message.show {
    display: flex;
}

/* Invalid input styling */
.ain-lookup-field .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.ain-lookup-field .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Form submission error */
.form-submit-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.form-submit-error i {
    font-size: 18px;
    flex-shrink: 0;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3142;
    margin-bottom: 12px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.fees-table-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow-x: auto;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.fees-table thead {
    background-color: #f3f4f6;
}

.fees-table th,
.fees-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    color: #2d3142;
    border-bottom: 1px solid #e5e7eb;
}

.fees-table th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.fee-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.fee-type-badge.compulsory {
    background: rgba(76, 175, 80, 0.15);
    color: #2f7a33;
}

.fee-type-badge.optional {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.fee-name-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-remove-fee {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    font-size: 12px;
    border-radius: 16px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-fee:hover {
    background: rgba(239, 68, 68, 0.18);
}

.payment-summary {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    background: #f9fafb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #2d3142;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* Error messages */
.text-danger {
    color: #dc3545 !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.text-danger.small {
    font-size: 12px;
}

/* Footer */
.footer {
    background-color: #2d3142;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 28px;
    color: #4CAF50;
}

.footer-description {
    color: #adb5bd;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 14px;
}

.footer-contact i {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-link:hover {
    background-color: #4CAF50;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #4CAF50;
}

.footer-bottom-links span {
    color: #adb5bd;
    font-size: 14px;
}

@media (max-width: 768px) {
    .payment-page {
        width: 100%;
        max-width: 100%;
    }

    .payment-section .container {
        width: 100%;
        max-width: 100%;
    }

    .payment-card {
        padding: 24px;
    }

  
    .fees-table {
        min-width: 620px;
    }

    .form-actions {
        justify-content: center;
    }

    .ain-lookup-field {
        flex-wrap: wrap;
    }
}
