body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #e3e5e7;
}

.custom-header {
    display: flex;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right, white 30%, #0c2f4b 30%);
    align-items: center;
    justify-content: space-between;
    margin-bottom: -40px;
}

.header-left {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    height: 100%;
}

.logo-img {
    height: 60px;
}

.header-right {
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    color: white;
    background: #0c2f4b;
    height: 100%;
    flex-wrap: wrap;
}
.header-left {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    height: 100%;
    padding: 0 10px;
    gap: 10px;
}
.contact-details {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.vertical-divider {
    width: 1px;
    height: 20px;
    background-color: #fff; /* or a light gray like #ccc */
    opacity: 0.7;
}

.brand-text {
    font-size: 20px;
    font-weight: bold;
    color: #003366;
}


.contact-details {
    display: flex;
    gap: 25px;
    font-size: 14px;
    align-items: center;
}

.contact-details i {
    margin-right: 6px;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 16px;
}

.social-icons i {
    cursor: pointer;
}


footer {
    background-color: #0c2f4b;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 50px;
}

footer a {
    color: #99ccff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
.form-container {
    max-width: 800px;
    margin: 40px auto;
    background: #0c2f4b; /* blue background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

    max-height: 80vh;           /* limit height to viewport */
    overflow-y: auto;           /* enable vertical scroll if content overflows */
    scrollbar-width: thin;      /* for Firefox */
}

/* Optional: Style scrollbar for WebKit browsers */
.form-container::-webkit-scrollbar {
    width: 6px;
}
.form-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3); 
    border-radius: 3px;
}



h2 {
    text-align: center;
    color: white !important;
    margin-bottom: 30px;
}

/* form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-group .radio-group input {
    width: auto;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    color: #333; /* dark text */
}

.form-section input,
.form-section select,
.form-section textarea {
    background: white;
    color: #000;
    border: 1px solid #ccc;
    width: -webkit-fill-available;
}


.form-section textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    text-align: center;
    margin-top: 20px;
}

.submit-btn button {
    background: #0c2f4b;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn button:hover {
    background: #0c2f4b;
}

.submit-btn {
    text-align: center;
    margin-top: 30px;
}

.submit-btn button {
    background: #356a94;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn button:hover {
    background: #1a71cd;
}
.required {
    color: red;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start; /* ensures label+radio stick to left */
}
input[type="radio"] {
    margin: 0;
    padding: 0;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* reduce the spacing */
    font-weight: 500;
    color: #333;
    margin: 0;
}

.checkbox-group label {
    align-items: center;
    gap: 8px; /* spacing between checkbox and text */
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width:30px;
}


.error {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

.hint {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}


/* media query */


@media (max-width: 768px) {
     .form-container {
        padding: 7px;
    }
      .new-p-d {
        padding-bottom: 20px !important;
        padding-top: 20 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .custom-header {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
        align-items: center;
    }

    .header-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .header-right {
        width: 100%;
        background-color: #0c2f4b; /* Light blue tone, adjust as needed */
        padding: 20px 0;
        display: flex;
        justify-content: center;
    }

    .contact-details,
    .social-icons {
        display: none !important;
    }

    .logo-img {
        height: 50px;
        max-width: 100%;
    }

    .brand-text {
        font-size: 18px;
        color: #003366;
        font-weight: bold;
        margin-top: 5px;
    }
}

