/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f5f7, #dcdde1);
    min-height: 100vh;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.logo-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.container {
    background: #fff;
    max-width: 480px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    padding: 30px 25px 40px;
    text-align: center;
}

.banner-wrapper {
    margin-bottom: 25px;
}

.form-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Form Grid - two columns */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px 40px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
    font-size: 15px;
}

input[type='text'],
input[type='email'],
input[type='date'],
input[type='tel'] {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 12px;
    border: 1.8px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline-offset: 3px;
    outline-color: transparent;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='date']:focus,
input[type='tel']:focus {
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
    outline-color: #667eea;
}

/* Checkbox group styled as fieldset */
.checkbox-group {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 600;
    color: #000000;
}

.checkbox-group legend {
    width: 100%;
    font-size: 16px;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 700;
    text-align: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type='checkbox'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Submit button - full width */
button[type='submit'] {
    width: 100%;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 700;
    border-radius: 14px;
    background: #667eea;
    color: white;
    border: none;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.7);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button[type='submit']:hover,
button[type='submit']:focus {
    background: #5a67d8;
    box-shadow: 0 8px 24px rgba(90, 103, 216, 0.85);
    outline: none;
}

/* Result display for verification form (if needed) */
#result {
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    min-height: 24px;
    color: #2d3748;
}

.footer {
    margin-top: 40px;
    font-size: 14px;
    color: #000000;
    opacity: 0.7;
}

/* Responsive tweaks */
@media (max-width: 520px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }

    .checkbox-group {
        gap: 20px;
    }
}

.main-menu {
    margin: 10px auto 30px;
    max-width: 480px;
    text-align: center;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-menu ul li {
    display: inline;
}

.main-menu ul li a {
    display: inline-block;
    /* makes the <a> respect width and text-align */
    text-align: center;
    /* center the text inside */
    text-decoration: none;
    font-weight: 600;
    color: #000000;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.main-menu ul li a:hover,
.main-menu ul li a:focus {
    background-color: #667eea;
    color: white;
    outline: none;
}

.footer-logo {
    padding-top: 10px;
    text-align: center;
}

/* Optional: apply Check Coupon styling to other buttons via class */
.styled-button {
    width: 100%;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 700;
    border-radius: 14px;
    background: #667eea;
    color: white;
    border: none;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.7);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 15px;
}

.styled-button:hover,
.styled-button:focus {
    background: #5a67d8;
    box-shadow: 0 8px 24px rgba(90, 103, 216, 0.85);
    outline: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1.5px solid #ccc;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-direction: column;
}

.modal-error {
    color: red;
    margin-top: 10px;
    font-weight: 600;
}