.header{
    display: flex;
    width: 100%;
    min-height: 100%;
    justify-content: center;
    align-items: center;
    background-color: white;
    height: 55px;
}

.header-title{
    color: #000;
    font-family: 'Inter', sans-serif;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: .5px;
    line-height: normal;
    margin: 0px;
}

/* General body styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Form container */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 30px 0;
    color: #000;
    letter-spacing: 0.5px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.required {
    color: #d32f2f;
}

/* Input fields */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #000;
}

.form-group select {
    cursor: pointer;
    background-color: white;
}

/* Phone input styling */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 12px;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #333;
}

.submit-btn:active {
    background-color: #000;
}

/* Already Registered */
.retrieve-btn {
    display: block;
    width: auto;
    padding: 8px 16px;
    margin: 18px auto 0 auto;
    background: transparent;
    border: none;
    border-radius: 20px;
    color: black;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.retrieve-btn:hover {
    background-color: #e8eaed;
}

.retrieve-btn:active {
    background-color: #dadce0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}
/* reCAPTCHA container */
.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 600px) {
    .form-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }
}

/* Fix date input for iOS */
.form-group input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
}

.form-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

 /* ===== MICROMODAL STYLING ===== */
 .modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.micromodal[aria-hidden="false"] .modal__overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__content {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    color: #000;
}

.modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 0;
    line-height: 1;
}

.modal__close:hover {
    color: #000;
}

.modal__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
}

/* ===== QR CODE ===== */
#qrcode {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

#qrcode img {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
}

/* ===== SCREENSHOT HINT ===== */
.screenshot-hint {
    margin: 0;
    padding: 10px 14px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

/* ===== SEARCHG BUTTON ===== */
.search-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.search-group .iti {
    flex: 1;
}

.search-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.search-group input[type="tel"]:focus {
    outline: none;
    border-color: #000;
}

.search-btn {
    padding: 12px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #333;
}

/* Error / Not Found message */
.search-error {
    display: none;
    font-size: 13px;
    color: #d32f2f;
    margin-bottom: 12px;
    text-align: center;
}

.search-error.active {
    display: block;
}

/* QR result area in search modal - hidden until found */
.search-result {
    display: none;
}

.search-result.active {
    display: block;
}

/* reCAPTCHA in search modal */
.search-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .form-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .modal__content {
        padding: 30px 20px;
    }
}