/* Global Styles */
body {
    background: #FFF8D6; /* light yellow */
    font-family: Arial, Helvetica, sans-serif;
    color: #800000; /* maroon */
    margin: 0;
    padding: 0;
}

select {
    background: #FFF5C8;
    border: 1px solid #80000055;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    color: #800000;
}

select:focus {
    border-color: #800000;
    outline: none;
    background: #FFF1B0;
}

.smallcontainer {
    width: 400px;
  margin: 20px auto;
  padding: 10px 10px;
  background: #ffffffaa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
  display: flex;
  border: 1px solid black;
  justify-content: space-evenly;
  align-items: center;
}

.smallcontainer img {
    width: 66px;
    height: auto;
}

.container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px 25px;
    background: #ffffffaa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
}

/* Navbar Container */
.navbar {
    background: goldenrod;
    padding: 10px 15px;
    border-radius: 10px;
    gap: 12px;
    color: #800000;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar img {
    border-radius: 10px;
    justify-content: space-around;
}

/* Brand Title */
.navbar-brand {
    color: #FFF8D6;
    font-size: 25px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 20px;
}

/* Horizontal Menu Bar */
.menu {
    margin-top: 10px;
    background: #FFF1B0;
    border: 1px solid #80000044;
    border-radius: 10px;
    padding: 8px 15px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

/* Menu Links */
.menu a {
    color: #800000;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.menu a:hover {
    background: #800000;
    color: #FFF8D6;
}

/* Highlight Active Page */
.menu a.active {
    background: #800000;
    color: #FFF8D6;
}

/* Mobile Responsive Menu */
@media(max-width: 600px) {
    .menu {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar-brand {
        margin-top: 5px;
        font-size: 18px;
    }
}


/* Headings */
h2 {
    text-align: center;
    font-size: 26px;
    margin-top: 10px;
    color: #800000;
}

/* Form Styles */
.form-group {
    width: 100%;
}

.input-with-btn {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px 1px 12px 10px; /* space for button */
    border-radius: 8px;
    border: 1px solid #80000055;
    background: #FFF5C8;
    font-size: 16px;
    color: #800000;
    outline: none;
    transition: 0.2s;
    
}

.form-control:focus {
    border-color: #800000;
    background: #FFF1B0;
}

.mic-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    width: 36px;
    border-radius: 50%;
    background: #800000;
    color: #FFF5C8;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.mic-btn:hover {
    background: #5e0000;
}

.mic-btn:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 576px) {
    .mic-btn {
        height: 40px;
        width: 40px;
        font-size: 18px;
    }
}

.mic-btn.listening {
    background: #B30000;
    box-shadow: 0 0 0 0 rgba(179, 0, 0, 0.7);
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(179, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(179, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(179, 0, 0, 0);
    }
}

.mic-btn.disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Radio Buttons Section */
fieldset {
    border: 2px solid #80000055;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

fieldset legend {
    font-size: 18px;
    font-weight: bold;
    color: #800000;
}

fieldset div {
    margin-bottom: 8px;
}

/* Submit Button */
.button {
    background: #800000;
    color: #FFF8D6;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    border-radius: 12px;
}

.button:hover {
    background: #B30000;
}


/* Footer */
a {
    color: #B30000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #FFF8D6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.18);
}

table thead {
    background: #800000;
    color: #FFF8D6;
}

table thead th {
    padding: 12px;
    font-size: 16px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tbody tr {
    border-bottom: 1px solid #80000033;
}

table tbody tr:nth-child(even) {
    background: #FFF3B0;
}

table td {
    padding: 12px;
    color: #800000;
    font-size: 16px;
}

/* Hover Effect */
table tbody tr:hover {
    background: #FFE99A;
    transition: 0.25s;
}

/* Optional: Center content for small numeric fields */
td.number {
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }
}


.flex {
  display: flex;
  justify-content: center;
}
footer {
    text-align: right;
    color:gray;
}
/* Entry Toggle Switch */
.entry-switch-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

/* Switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
}

/* Hide checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #B30000; /* OFF */
    transition: 0.3s;
    border-radius: 34px;
}

/* Knob */
.slider::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #FFF8D6;
    transition: 0.3s;
    border-radius: 50%;
}

/* ON state */
.switch input:checked + .slider {
    background-color: #800000;
}

/* Move knob */
.switch input:checked + .slider::before {
    transform: translateX(30px);
}

/* Status text */
.switch-label {
    font-weight: bold;
    font-size: 16px;
    color: #800000;
    text-transform: uppercase;
}
.offer-container {
    position: relative;
    display: inline-block;
}

.popuptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the button */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* The class toggled by JavaScript */
.popuptext.show {
    visibility: visible;
    opacity: 1;
}

.oval {
  align-items: center;
    justify-content: center;
    display: flex;
}
.oval img {
     width: 200px;
  height: auto;
  background: #FFFFC5;
  border-radius: 25%;
}

