/* =========================================
   MEGA PETRO MALL - DIESEL ORDER FORM
   ========================================= */

.mpm-diesel-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 25px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
	font-family: "Inter",sans-serif;
}
.mpm-field p {
    min-width: 0;
    width: 100%;
}

/* Header */

.mpm-form-header {
    background: #ffda00;
    border-radius: 13px;
    padding: 15px 42px;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(255, 218, 0, .35);
}

.mpm-form-title {
    color: #001A2E;
    font-size: 14px;
    font-weight: 800;
    line-height: 21px;
	font-family: "Manrope",sans-serif;
}

.mpm-form-subtitle {
    margin-top: 5px;
    color: #001A2EB2;
    font-size: 11.5px;
	font-weight: 400;
    line-height: 17.25px;
	font-family: "Inter",sans-serif;
}
.mpm-submit p {
    margin: 0 !important;
}

/* Fields */

.mpm-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 15px;
	max-width: 100%;
}

.mpm-field label {
    display: block;
    margin-bottom: 8px;
    color: #071c2c;
    font-size: 13px;
    font-weight: 600;
}
.mpm-form-subtitle p, .mpm-form-title p {
    margin: 0px !important;
}


.mpm-field input {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #cbdde9;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #071c2c;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.mpm-field input::placeholder {
    color: #4A5F6E99;
	font-size: 15px;
	font-weight: 400;
    opacity: 1;
}

.mpm-field input:focus {
    border-color: #2196c9;
    box-shadow: 0 0 0 2px rgba(33, 150, 201, .08);
}

/* Date */

.mpm-field input[type="date"] {
    color: #91a0ad;
}

.mpm-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .65;
    cursor: pointer;
}

/* Time legend */

.mpm-time-header {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    margin-bottom: 10px;
}

.mpm-time-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3d5365;
    font-size: 12px;
}

.mpm-available-dot,
.mpm-booked-dot {
    width: 11px;
    height: 11px;
    display: inline-block;
    border-radius: 50%;
    margin-left: 8px;
}

.mpm-available-dot {
    background: #2599cc;
    margin-left: 0;
}

.mpm-booked-dot {
    background: #d1e3ee;
}

/* Time slots */

.mpm-time-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.mpm-time-slot {
    position: relative;
    display: block;
    margin: 0;
}

.mpm-time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mpm-time-slot .wpcf7-list-item {
    margin: 0;
    display: block;
}

.mpm-time-slot label {
    display: block;
}

/*
 * Radio input immediately followed by its visible pill label.
 */

.mpm-time-slot {
    min-height: 37px;
}

.mpm-time-slot .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 37px;
    padding: 4px 4px;
    box-sizing: border-box;
    border: 1px solid #cbdde9;
    border-radius: 8px;
    background: #fff;
    color: #071c2c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
}

.mpm-time-slot input[type="radio"]:checked + .wpcf7-list-item-label {
    background: #ffda00;
    border-color: #ffda00;
    color: #071c2c;
}

/* Booked slots */

.mpm-time-slot.booked .wpcf7-list-item-label {
    background: #eef6fa;
    color: #9eafb9;
    text-decoration: line-through;
    cursor: not-allowed;
    border-color: #cbdde9;
}

.mpm-time-slot.booked input[type="radio"] {
    pointer-events: none;
}

.mpm-submit {
    margin-top: 15px;
}

.mpm-submit input[type="submit"] {
    width: 100%;
    height: 51px;
    border: 0;
    border-radius: 28px;
    background: #ffda00;
    color: #061b2d;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 218, 0, .18);
    transition: background .2s, transform .2s;
}

.mpm-submit input[type="submit"]:hover {
    background: #ffd000;
    transform: translateY(-1px);
}

.mpm-submit input[type="submit"]:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Footer */

.mpm-form-footer {
    padding-top: 14px;
    text-align: center;
    color: #526b7d;
    font-size: 12px;
    line-height: 18px;
    margin-top: -40px;
}

/* Remove unwanted spacing */

.mpm-diesel-form .wpcf7-form-control-wrap {
    display: block;
}

.mpm-diesel-form .wpcf7-list-item {
    margin: 0;
}


@media (max-width: 650px) {

    /* Main mobile card */
.mpm-diesel-form {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 15px;
    padding: 18px 15px 17px;
    border-radius: 12px;
    box-shadow: none;
    box-sizing: border-box;
}
	

    /* Yellow header */
    .mpm-form-header {
        margin: 0 0 14px;
        padding: 10px 14px;
        min-height: 46px;
        border-radius: 9px;
        box-sizing: border-box;
    }

    .mpm-form-title {
        font-size: 11px;
        line-height: 14px;
        padding-left: 15px;
        position: relative;
    }
    

    .mpm-form-subtitle {
        margin-top: 1px;
        padding-left: 15px;
        font-size: 9px;
        line-height: 12px;
    }

    /* One field per row */
    .mpm-fields-grid {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: 11px;
        column-gap: 0;
    }

    .mpm-field label {
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 13px;
    }

    .mpm-field input {
        width: 100%;
        height: 34px;
        padding: 0 10px;
        border-radius: 6px;
        font-size: 10px;
        box-sizing: border-box;
    }

    .mpm-field input::placeholder {
        font-size: 10px;
    }

    /* Delivery date */
    .mpm-field input[type="date"] {
        height: 34px;
        font-size: 10px;
    }

    /* Time legend */
    .mpm-time-header {
        margin-top: 13px;
        margin-bottom: 7px;
        justify-content: flex-end;
    }

    .mpm-time-legend {
        gap: 4px;
        font-size: 8px;
        line-height: 10px;
    }

    .mpm-available-dot,
    .mpm-booked-dot {
        width: 8px;
        height: 8px;
        margin-left: 6px;
    }

    .mpm-available-dot {
        margin-left: 0;
    }

    /* Keep 5 columns on mobile */
    .mpm-time-slots {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px 4px;
    }

    .mpm-time-slot {
        min-height: 27px;
        width: 100%;
    }

    .mpm-time-slot .wpcf7-list-item-label {
        min-height: 27px;
        height: 27px;
        padding: 0 2px;
        border-radius: 6px;
        font-size: 8px;
        line-height: 9px;
        white-space: nowrap;
        text-align: center;
        box-sizing: border-box;
    }

    /* Submit button */
    .mpm-submit {
        margin-top: 14px;
    }

    .mpm-submit input[type="submit"] {
        width: 100%;
        height: 37px;
        border-radius: 22px;
        font-size: 11px;
        box-shadow: 0 5px 12px rgba(255, 218, 0, .18);
    }

    /* Footer */
    .mpm-form-footer {
        padding: 10px 4px 0;
        font-size: 9px;
        line-height: 13px;
        text-align: center;
    }
}
.mpm-time-slot.booked {
    display: block;
    width: 100%;
    height: 37px;
    margin: 0;
}

.mpm-time-slot.booked .mpm-booked-time {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 37px;
    padding: 0 4px;
    box-sizing: border-box;

    background: #eef6fa;
    border: 1px solid #c9dfeb;
    border-radius: 8px;

    color: #9caeb9;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    text-decoration-line: line-through;
    text-decoration-color: #9caeb9;
    text-decoration-thickness: 1px;

    cursor: not-allowed;
}
.mpm-time-slots p {
    margin: 0;
}

/* Mobile */
@media (max-width: 650px) {

    .mpm-time-slot.booked {
        height: 27px;
    }

    .mpm-time-slot.booked .mpm-booked-time {
        height: 27px;
        min-height: 27px;
        padding: 0 2px;

        background: #eef6fa;
        border: 1px solid #c9dfeb;
        border-radius: 6px;

        color: #9caeb9;
        font-size: 8px;
        font-weight: 600;

        text-decoration-line: line-through;
        text-decoration-color: #9caeb9;
        text-decoration-thickness: 1px;
    }
}



/* Extra-small phones */
@media (max-width: 320px) {

    .mpm-diesel-form {
        width: calc(100% - 10px);
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .mpm-time-slots {
        gap: 4px 3px;
    }

    .mpm-time-slot .wpcf7-list-item-label {
        font-size: 7px;
        padding-left: 1px;
        padding-right: 1px;
    }
}

.mpm-field p {
    margin: 0px !important;
}
.mpm-time-legend p {
    display: contents;
}

@media (max-width: 768px)  {

    .mpm-field input[type="date"]::-webkit-calendar-picker-indicator {
        display: none !important;
        opacity: 0 !important;
        -webkit-appearance: none;
    }

    .mpm-field input[type="date"] {
        appearance: none;
        -webkit-appearance: none;
    }
}

/* =========================================
   Supplementary rules (not part of the supplied CSS):
   success/error messages, honeypot hiding, loading/empty
   states for the slot grid. Uses dod- prefix so it never
   collides with the mpm- design classes above.
   ========================================= */

.dod-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

#dod-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 13px;
    font-family: "Inter", sans-serif;
}

#dod-message.dod-success {
    background: #edf7ed;
    border: 1px solid #4caf50;
    color: #1e4620;
}

#dod-message.dod-error {
    background: #fdeded;
    border: 1px solid #d63638;
    color: #611a15;
}

.dod-slot-loading,
.dod-slot-empty {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #8a929b;
    padding: 6px 0;
}

/*
 * The supplied .mpm-form-footer rule includes margin-top: -40px, which
 * was compensating for Contact Form 7's extra paragraph-wrapper spacing.
 * Our markup doesn't have that wrapper, so the negative margin causes
 * the footer text to overlap the submit button. Cancel it here.
 */
.mpm-form-footer {
    margin-top: 14px;
}

/* =========================================
   Confirmation popup (shown after successful submission)
   ========================================= */

.dod-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 28, 44, 0.55);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: dod-fade-in .15s ease;
}

@keyframes dod-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dod-modal-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 400px;
    padding: 28px 26px 24px;
    box-sizing: border-box;
    position: relative;
    font-family: "Inter", sans-serif;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: dod-pop-in .18s ease;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

@keyframes dod-pop-in {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dod-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f2f4f6;
    color: #5b6470;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dod-modal-close:hover {
    background: #e6e9ec;
}

.dod-modal-icon {
    width: 52px;
    height: 52px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: 4px auto 14px;
}

.dod-modal-title {
    text-align: center;
    color: #001A2E;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 18px;
    font-family: "Manrope", sans-serif;
}

.dod-modal-details {
    background: #f7f9fb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.dod-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
}

.dod-modal-row:not(:last-child) {
    border-bottom: 1px solid #e9edf0;
}

.dod-modal-row span {
    color: #5b6470;
}

.dod-modal-row strong {
    color: #071c2c;
    text-align: right;
    word-break: break-word;
}

.dod-modal-note {
    text-align: center;
    color: #526b7d;
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0 0 18px;
}

.dod-modal-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 24px;
    background: #ffda00;
    color: #061b2d;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 218, 0, .18);
}

.dod-modal-btn:hover {
    background: #ffd000;
}

@media (max-width: 480px) {
    .dod-modal-box {
        padding: 24px 20px 20px;
        border-radius: 14px;
    }
}
