body {
    font-family: 'Noto Sans Tamil', sans-serif;
    background-color: #fdf6ff;
    margin: 0;
    padding: 20px;
}

.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0d9f1;
}

/* Notice (disabled feature) dashed box moved from inline styles */
.notice-dashed {
    border: 2px dashed #7b2cbf;
    padding: 20px 22px;
    margin-bottom: 18px;
    text-align: center; /* center title and actions */
    display: block;
}

.notice-title {
    margin: 0 0 8px;
    color: #7b2cbf;
    font-size: 1.6rem;
    font-weight: 700;
}

.notice-body {
    margin: 0 0 14px;
    color: #222;
    font-size: 1rem;
}

.notice-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Button styles: primary and ghost */
.btn-home, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-home {
    background: #7b2cbf;
    color: #fff;
    box-shadow: 0 6px 14px rgba(123,44,191,0.16);
    border: 1px solid rgba(0,0,0,0.04);
}

.btn-home:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(123,44,191,0.06);
    color: #7b2cbf;
    border: 1px solid rgba(123,44,191,0.14);
}

.btn-ghost:hover {
    transform: translateY(-2px);
}

/* Typing hint moved from inline styles */
.typing-hint {
    color: #6a1b9a;
    font-size: 10px;
    display: block;
    margin-bottom: 8px;
}
.typing-hint-icon { font-size: 10px; margin-right: 6px; }

h2 {
    color: #7b2cbf;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.mb-3 {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

input[type="text"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease-in-out;
}

input:focus {
    outline: none;
    border-color: #7b2cbf;
    box-shadow: 0 0 6px rgba(123, 44, 191, 0.3);
    background-color: #fff;
}

.btn-submit {
    background-color: #7b2cbf;
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(123, 44, 191, 0.2);
}

.btn-submit:hover {
    background-color: #5a1a96;
    box-shadow: 0 6px 12px rgba(90, 26, 150, 0.25);
}

.coordinates-display {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.coordinates-display span {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
}

.coordinates-display .label {
    font-size: 0.9rem;
    color: #222;
    font-weight: bold;
}

@media (max-width: 600px) {
    .form-container {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.4rem;
    }

    label {
        font-size: 0.95rem;
    }

    input[type="text"],
    input[type="date"],
    input[type="time"] {
        font-size: 0.95rem;
    }

    .btn-submit {
        font-size: 0.95rem;
    }

    .coordinates-display {
        font-size: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .accuracy-note {
        font-size: 0.4rem;
        align-items: flex-start;
    }

}
.blur-background {
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.5;
}

#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loading-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#loadingModalText {
    max-width: 500px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #7b2cbf;
    text-align: center;
    line-height: 1.6;
    word-break: break-word;  /* In case text is long in mobile */
}

@media (max-width: 600px) {
    #loadingModalText {
        font-size: 0.7rem;
    }
}

input:focus {
    outline: none;
}

input.error {
    border: 2px solid red !important;
    border-radius: 6px;
    transition: border 0.2s ease-in-out;
}


/* Breadcrumb */
.breadcrumb-nav {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 1rem;
}
.breadcrumb-nav a {
  text-decoration: none;
  color: #7b2cbf;
  font-weight: 500;
}


.modal {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
}

.modal.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 90%;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    text-align: center;
    font-family: 'Noto Sans Tamil', sans-serif;
}

.modal-content.error h2 {
    color: #e53935;
    margin-bottom: 10px;
}

.modal-content button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #7b2cbf;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
}

.modal-content.alert {
    background-color: #fff;
    border: 2px solid #7b2cbf;
    border-radius: 12px;
    padding: 20px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

body.modal-active .form-container {
    filter: blur(3px);
}

.tob-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tob-option-group {
    margin-left: 12px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tob-time-input {
  margin-left: 0;        /* Aligns left like DOB */
  margin-top: 6px;
  width: 100%;
}

.tob-time-input input[type="time"] {
  width: 100%;
}

/* Custom radio button color */
input[type="radio"]:checked {
  accent-color: #7b2cbf;  /* Brand color */
}

/* stop the floating header/footer */
body { padding: 0 !important; margin: 0; }

/* use the same page width + gutters as Home */
:root { --page-max: 760px; --page-pad: 12px; }

.form-container{
  max-width: var(--page-max);
  margin: 40px auto;          /* keep your top/bottom spacing */
  padding: 24px var(--page-pad) 32px;
  box-sizing: border-box;
}

/* defensive full-bleed for header/footer even if a parent adds padding */
.header, .footer{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 !important;
}
