:root {
    --primary-color: #033434; /* Replace with logo's primary color */
    --secondary-color: #00509e; /* Slightly lighter shade for accents */
    --text-color: #333;
    --background-color: #f5f5f5;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}



body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    /* margin-bottom: 10px; */
    /* line-height: 1.2; */
    margin-top: px;
    margin-top: 0px;
}

.hero p {
    font-size: 1.5rem;
    margin-top: 5px;
}

/* Policy Search Section */
.policy-search {
    background: var(--white);
    margin: -30px auto 20px;
    padding: 25px 20px;
    max-width: 900px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.policy-search h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    margin-top: 0px;
}

.policy-search p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Common styles for all alerts */
.alert {

    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    color: red;
}

/* Success alert styles */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    font-weight: bold;
}

/* Error alert styles */
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    font-weight: bold;
}

/* Hidden alert */
.alert-hidden {
    display: none;
}

/* Dismissable button (optional, if you want to show a close button) */
.btn-close {
    float: right;
    font-size: 20px;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.policy-search .search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.policy-search .search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.policy-search .search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    outline: none;
}

.policy-search .search-box button {
    background: #069ba3;
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.policy-search img {
    width: 42%;
}

.policy-search .search-box button:hover {
    background: var(--secondary-color);
}

/* Policy Details Section */
.policy-details {
    display: none;
    margin: 20px auto;
    padding: 40px 20px;
    background: var(--white);
    max-width: 900px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.policy-details h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.details-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.details-card {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    background: var(--white);
    box-shadow: 0 4px 8px var(--shadow-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s;
}

.details-card:hover {
    transform: translateY(-10px);
}

.details-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.details-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin-top: 20px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Card Container */
.details-card {
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    background: var(--white);
    box-shadow: 0 4px 8px var(--shadow-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s;
}

.details-card:hover {
    transform: translateY(-5px);
}

/* Card Title */
.details-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Paragraph Style */
.details-card p {
    font-size: 1rem;
    margin: 10px 0;
}

/* Input Group */
.input-group {
    margin-top: 15px;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.input-group input {
    width: 90%;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    outline: none;
}

/* Total Amount Display */
.details-card span {
    font-weight: bold;
    color: var(--primary-color);
}

/* Payment Methods Section */
.payment-methods {
    padding: 13px 0px;
    text-align: center;
    background: var(--white);
    box-shadow: 0 4px 8px var(--shadow-color);
    border-radius: var(--border-radius);
}

.payment-methods img {
    max-width: 98%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 10px;
    margin-top: auto;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    bottom: 0;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 1.9rem; /* Slightly reduced */

    }
    .hero p {
        font-size: 0.9rem; /* Slightly reduced */

    }

    .policy-search,
    .policy-details {
        margin: -20px 10px 20px;
        padding: 30px 15px;
    }

    .policy-search h2 {
        font-size: 1.8rem; /* Reduced for medium devices */
    }

    .policy-search p {
        font-size: 0.9rem;
    }

    .details-container {
        flex-direction: column;
        gap: 15px;
    }

    .details-card h3 {
        font-size: 1.2rem;
    }

    .details-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.7rem; /* Adjusted for smaller tablets */
    }

    .policy-search h2 {
        font-size: 1.6rem; /* Scaled down */
    }

    .policy-search p {
        font-size: 0.85rem; /* Slightly smaller */
    }

    .details-card h3 {
        font-size: 1.1rem;
    }

    .details-card p {
        font-size: 0.8rem;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem; /* Reduced for mobile */
    }
    .hero p {
        font-size: 0.8rem; /* Reduced for mobile */
    }

    .policy-search h2 {
        font-size: 1.4rem; /* Smaller header for compact screens */
    }

    .policy-search p {
        font-size: 0.8rem;
    }

    .details-card h3 {
        font-size: 1rem; /* Reduced for mobile readability */
    }

    .details-card p {
        font-size: 0.75rem; /* Optimized for mobile */
    }

    .btn-primary {
        font-size: 0.8rem; /* Compact button size */
        padding: 8px 12px;
    }

    .payment-methods img {
        max-width: 90%; /* Adjusted for small screens */
    }
}

