/* General Reset and Base Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #141E30;
    color: white;
}

.container {
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1B263B;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1, h2 {
    color: #2E8BC0;
    text-align: center;
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    margin: 10px 0;
}

a {
    color: #2E8BC0;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1C6E9C;
    text-decoration: underline;
}

/* Header and Footer Styling */
.header, .footer {
    background-color: #1B263B;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

.nav-icon {
    font-size: 30px;
    cursor: pointer;
    color: white;
}

.footer {
    background-color: #1B263B;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    border-top: 1px solid #2E8BC0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-reference {
    color: #ddd;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 15px; /* Space between disclaimer and links */
    text-align: center;
    max-width: 80%;
}

.footer-links {
    text-align: center;
    font-size: 0.9rem;
}

.footer-links a {
    color: #2E8BC0;
    text-decoration: none;
    margin: 0 8px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Navigation Drawer Styling */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #1B263B;
    padding-top: 60px;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.nav-drawer.active {
    display: block;
    transform: translateX(0);
}

.nav-drawer a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    display: block;
    transition: background-color 0.3s;
}

.nav-drawer a:hover {
    background-color: #2E8BC0;
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Grid and Banner Styling */
.banner {
    text-align: center;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid div {
    background-color: #1B263B;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid div img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Modal Styling */
.modal {
    display: none; /* Ensure modal is hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content Styling */
.modal-content {
    position: relative; /* Required for positioning the close icon inside */
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal.show {
    display: flex; /* Only show modal when "show" class is added */
    justify-content: center;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.modal-body p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.country-code {
    background: #f0f0f0;
    padding: 10px;
    color: #333;
    font-weight: bold;
    border-right: 1px solid #ccc;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: none;
    outline: none;
}

.btn-submit {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Toast Notification Styling */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 1001;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}


@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Loader Styling */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Close Icon - Inside the Dialog */
.close-icon {
    position: absolute;
    top: 10px; /* Adjust relative to .modal-content */
    right: 10px; /* Adjust relative to .modal-content */
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10; /* Ensure it stays above content */
}

.close-icon:hover {
    color: #000;
}
.hero {
    display: block;      /* Allows it to span full width if you want */
    width: 100%;
    text-align: center;  /* Center the contained image if needed */
}

.hero img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center horizontally if text-align doesn't suffice */
}