.mm-wrapper {
    padding-top: 64px;
    padding-bottom: 84px;
}

.mm-wrapper :is(h1, h2, h3, h4, h5, p) {
    margin: 0;
    padding: 0;
    color: #030303;
}

/* HERO */
.mm-hero {
    text-align: center;
    margin-bottom: 40px;
}

.mm-hero h1 {
    font-family: "Rajdhani", Sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 70px;
    color: #000;
}

.flatpickr-monthDropdown-months {
    padding: 0 !important;
    height: 36px;
}

.flatpickr-months .flatpickr-month {
    height: 44px !important;
}

.flatpickr-innerContainer {
    justify-content: center;
}

.mm-hero span {
    color: #6CFF00;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 9px !important;
}

.mm-hero p {
    color: #777;
}

/* CARD */
.mm-card {
    max-width: 900px;
    margin: auto;
    background: #F3F4F6;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;

}

/* HEADERS */
.mm-header h2 {
    margin: 0;
    font-size: 20px;
}

.mm-header p {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* DIVIDER */
.mm-divider {
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* GRID */
.mm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* FIELD */
.mm-field {
    display: flex;
    flex-direction: column;
}

.mm-field.full {
    grid-column: span 2;
}

/* LABEL */
.mm-field label {
    font-size: 13px;
    color: #444;
    margin-bottom: 0;
}

/* INPUTS */
.mm-form input[type="text"],
.mm-form input[type="tel"],
.mm-form select,
.mm-form textarea,
.mm-form input[type="email"],
.flatpickr-input,
.mm-form input[type="number"] {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e1e5ea;
    background: #fafbfc;
    font-size: 14px;
    transition: all 0.25s ease;
    margin-bottom: 0 !important;
}

.flatpickr-calendar {
    max-width: 405px !important;
    width: 100%;
}

.mm-form textarea {
    resize: none;
}

/* FOCUS STATE */
.mm-form input:focus,
.mm-form select:focus,
.mm-form textarea:focus,
.mm-form input[type="email"]:focus {
    border-color: #6CFF00;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 255, 0, 0.15);
    outline: none;
}

/* FILE INPUT IMPROVED */
input[type="file"] {
    background: #fff;
    padding: 10px;
}

/* BUTTON */
.mm-btn {
    background-color: #000000 !important;
    color: #CCFF00 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    max-width: 196px;
    width: 100%;
    transition: 0.3s;
    margin: 0 auto;
    border-radius: 32px;
    height: 44px;
    padding: 10px !important;
}

.mm-btn:hover {
    background: #CCFF00 !important;
    color: #000 !important;
}

.mm-form select:invalid {
    height: 51px !important;
    opacity: 1 !important;
    position: initial !important;
    display: inline-block !important;
    padding-top: 0;
}

.mm-form select {
    padding-top: 0;
}

.mm-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.error-msg {
    color: red;
    font-size: 12px;
    display: block;
}


.mm-field.has-error input,
.mm-field.has-error select,
.mm-field.has-error textarea {
    border: 1px solid red;
    background: #fff5f5;
}

.custom-select {
    position: relative;
}

.custom-select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 55%;
    transform: translateY(0%);
    width: 16px;
    height: 16px;
    pointer-events: none;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.custom-select.has-error::after {
    top: 42%;
}

.has-error input,
.has-error select,
.has-error #dob,
.has-error input[type="file"],
.has-error input[type="email"],
.has-error input[type="file"]+label,
.has-error textarea[name="address"] {
    border: 1px solid red !important;
}

.custom-select select {
    appearance: none;
    width: 100%;
    padding-right: 40px;
}

.mm-form input[type="date"] {
    position: relative;
    padding-right: 40px;
}

/* Hide default icon (Chrome) */
.mm-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    cursor: pointer;
}

/* Custom icon */
.mm-form input[type="date"]::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v2h18V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm14 8H3v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V10z'/></svg>");
}

.file-upload {
    position: relative;
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0 !important;
    cursor: pointer;
}

.file-upload label {
    display: flex;
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.file-upload span {
    display: flex;
}

.file-upload svg {
    width: 20px;
    height: 20px;
}

.file-upload:hover label {
    border-color: #6CFF00;
}

/* Hide default arrow (IE/Edge) */
.mm-form select::-ms-expand {
    display: none;
}

#dob,
.flatpickr-input {
    border-radius: 10px !important;
    border: 1px solid #e1e5ea !important;
}

.flatpickr-current-month {
    display: flex !important;
}

.flatpickr-current-month .numInputWrapper,
.flatpickr-current-month select {
    flex: 1 !important;

}

.flatpickr-time,
.flatpickr-calendar.hasTime {
    height: 60px !important;
    max-height: 60px !important;
}

.flatpickr-time .numInputWrapper span.arrowUp,
.flatpickr-time .numInputWrapper span.arrowDown {
    background-color: transparent !important;
    border: none !important;

}

.flatpickr-time .numInputWrapper {
    height: 60px !important;
}

.flatpickr-time .flatpickr-am-pm {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px !important;
}

.flatpickr-calendar.animate.open {
    width: 100% !important;
}

.organisation-booking .mm-btn {
    max-width: 216px;
}

.mm-alert {
    margin-top: 20px;
    background: #030303;
    padding: 8px;
    border-radius: 6px;
}

.mm-alert a {
    text-decoration: underline !important;
}

.mm-alert a:hover {
    color: #6CFF00;
}

.flatpickr-time .flatpickr-am-pm {
    height: 60px;
    display: flex !important;

}

.flatpickr-time-separator {
    padding-top: 8px !important;

}

.error-msg {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.mm-field input.error,
.mm-field select.error,
.mm-field textarea.error,
#dob.flatpickr-input.error {
    border: 1px solid red !important;
}


.rules-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px !important;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: #fff;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 16px;
    height: 44px;
}

#showRulesBtn {
    border-radius: 12px;
}

.rules-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.rules-btn span {
    color: #fff !important;
}

.rules-btn:active {
    transform: scale(0.98);
}

.rules-btn .rules-icon {
    font-size: 18px;
}

.rules-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.rules-content {
    background: #fff;
    width: 90%;
    max-width: 700px;
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    position: relative;

}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.rules-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.rules-content {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border-radius: 18px;
    padding: 0px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: popupFade 0.25s ease;
    overflow: hidden;
}

.modal-content-wrap{
    max-height: 82vh;
    overflow-y: auto;
    padding: 0px 25px;
}

.rules-content h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 14px;
    padding: 25px;
}

.rules-content ol {
    margin: 0;
    padding-left: 22px;
}

.rules-content ol li {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 14px;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0 !important;
}

.close-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.close-btn:hover {
    background: #0f172a !important;
}

.close-btn:hover svg {
    color: #fff !important;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width:768px) {

    .rules-content {
        padding: 0;
        border-radius: 14px;
    }

    .rules-content h2 {
        font-size: 22px;
        text-align: left;
    }

    .rules-content ol li {
        font-size: 15px;
        line-height: 1.7;
    }

    .close-btn {
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .mm-grid {
        grid-template-columns: 1fr;
    }

    .mm-field.full {
        grid-column: span 1;
    }

    .mm-hero h1 {
        font-size: 40px;
        line-height: 50px;
    }

    .mm-wrapper {
        padding-top: 40px;
        padding-bottom: 50px;
    }
}

@media(max-width: 568px) {
    .flatpickr-calendar.open {
        max-width: 320px !important;
        left: 20px !important;
    }

    .mm-card {
        border: none;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
}