:root {
    --med-blue: #bcd9e3;    
    --dark-blue: #275176;   
    --bg-gray: #e3e7ea;     
    --border-gray: #9baab5; 
}

* {
    border: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica', sans-serif;
}

body {
    background-color: #e3e7ea;
}  

.med{
    color: #275176;
}

.header-layout{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d0d0d0; 
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.logo img{
    height: 42px;
}

.logo h1{
    font-size: 20px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav a {
    color: #275176;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding-bottom: 3px;
    position: relative;
    text-decoration: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #275176;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-header {
    background-color: var(--med-blue);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 15px;
    margin-top: 10px;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.input-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #333;
}

input, select, textarea {
    padding: 8px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-small { width: 80px; }

.radio-group {
    padding: 5px 10px 15px;
    display: flex;
    gap: 40px;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 30px;
}

.btn-form {
    padding: 10px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.btn-back {
    background-color: var(--dark-blue);
    color: white;
}

.btn-next {
    background-color: #c4dfe6;
    color: var(--dark-blue);
}

.footer-layout{
    margin-top: 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #d0d0d0;
    font-size: 12px;
    color: #333;
}

.footer-right{
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links{
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a{
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.footer-links a:hover{
    color: #275176;
}

.footer-seal{
    height: 42px;
}

input::placeholder {
    color: #a0a0a0;
    font-size: 12px;
}


        .was-validated input:invalid, 
        .was-validated select:invalid, 
        .was-validated textarea:invalid {
            border: 2px solid #ff0000 !important;
            background-color: #fff0f0;
            animation: shake 0.2s ease-in-out 0s 2;
        }

        @keyframes shake {
            0% { transform: translateX(0); }
            25% { transform: translateX(5px); }
            50% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
            100% { transform: translateX(0); }
        }

        input[type="text"] {
    text-transform: capitalize;
}

/* Highlighting red when fields are missing/incorrect after clicking Next */
.was-validated input:invalid, 
.was-validated select:invalid, 
.was-validated textarea:invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fff8f8;
}

/* Optional: Green border when fields are correctly filled */
.was-validated input:valid, 
.was-validated select:valid, 
.was-validated textarea:valid {
    border: 1px solid #198754;
}


