/**
 * Detail-Form (Slide 12) — 6 sliders + textarea
 */

:root {
    --mmf-primary: #0b91df;
    --mmf-navy: #2f3b54;
    --mmf-text-gray: #5a6478;
    --mmf-bg: #f5f8fc;
}

.mmf-details {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 720px;
    margin: 40px auto;
    padding: 32px 28px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(34, 41, 59, 0.08);
}

.mmf-details__error {
    text-align: center;
    padding: 40px 20px;
}

.mmf-details__error h2 {
    color: var(--mmf-navy);
    font-family: 'Rubik', sans-serif;
}

.mmf-details__head {
    text-align: center;
    margin-bottom: 28px;
}

.mmf-details__heading {
    font-family: 'Rubik', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--mmf-navy);
    margin: 0 0 8px 0;
}

.mmf-details__subtitle {
    color: var(--mmf-text-gray);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.mmf-slider {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: var(--mmf-bg);
    border-radius: 10px;
}

.mmf-slider__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.mmf-slider__label {
    font-weight: 600;
    color: var(--mmf-navy);
    font-size: 15px;
}

.mmf-slider__value {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    color: var(--mmf-primary);
    font-size: 18px;
}

.mmf-slider__input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #d8dee9;
    outline: none;
}

.mmf-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mmf-primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(11, 145, 223, 0.4);
}

.mmf-slider__input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mmf-primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(11, 145, 223, 0.4);
}

.mmf-slider__minmax {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: #9aa3b2;
}

.mmf-details__message-block {
    margin: 28px 0 20px;
}

.mmf-details__message-label {
    display: block;
    font-weight: 600;
    color: var(--mmf-navy);
    margin-bottom: 8px;
    font-size: 15px;
}

.mmf-details__textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    color: var(--mmf-navy);
}

.mmf-details__textarea:focus {
    outline: none;
    border-color: var(--mmf-primary);
    box-shadow: 0 0 0 3px rgba(11, 145, 223, 0.15);
}

.mmf-details__submit {
    display: block;
    width: 100%;
    margin: 24px 0 0;
    padding: 16px 24px;
    background: var(--mmf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11, 145, 223, 0.25);
    transition: all 0.15s ease;
}

.mmf-details__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(11, 145, 223, 0.35);
}

.mmf-details__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mmf-details__success {
    text-align: center;
    padding: 40px 20px;
}

.mmf-details__success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6fbf3;
    color: #10b981;
    font-size: 28px;
    line-height: 60px;
    margin: 0 auto 16px;
}

.mmf-details__success h2 {
    color: var(--mmf-navy);
    font-family: 'Rubik', sans-serif;
    margin: 0 0 10px 0;
}

.mmf-details__success p {
    color: var(--mmf-text-gray);
    line-height: 1.55;
    margin: 0;
}

/* Sub-steps */
.mmf-d-step {
    display: none;
}

.mmf-d-step.mmf-d-step--active {
    display: block;
    animation: mmfFadeIn 0.3s ease;
}

@keyframes mmfFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Address step */
.mmf-d-address {
    margin: 24px 0;
}

.mmf-d-address__row {
    margin-bottom: 16px;
}

.mmf-d-address__row--split {
    display: flex;
    gap: 12px;
}

.mmf-d-address__field {
    flex: 0 0 130px;
    position: relative;
}

.mmf-d-address__field--wide {
    flex: 1;
}

.mmf-d-address__field--grow {
    flex: 1;
}

.mmf-d-address__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mmf-navy);
    margin-bottom: 6px;
}

.mmf-d-address__field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #d8dee9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--mmf-navy);
    box-sizing: border-box;
}

.mmf-d-address__field input:focus {
    outline: none;
    border-color: var(--mmf-primary);
    box-shadow: 0 0 0 3px rgba(11, 145, 223, 0.15);
}

/* Autocomplete suggestion dropdown */
.mmf-d-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    margin-top: 4px;
    padding: 4px 0;
    list-style: none;
    box-shadow: 0 4px 16px rgba(34, 41, 59, 0.12);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
}

.mmf-d-suggest__item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--mmf-navy);
    cursor: pointer;
    line-height: 1.4;
}

.mmf-d-suggest__item:hover {
    background: #e8f4fd;
}

.mmf-d-suggest__item b {
    color: var(--mmf-primary);
    font-weight: 600;
}

/* Map container */
.mmf-d-map {
    height: 320px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #d8dee9;
}

.mmf-d-map__hint {
    font-size: 12px;
    color: var(--mmf-text-gray);
    margin: 8px 0 0 0;
    text-align: center;
}

/* Action buttons — high specificity to beat Elementor theme kit. */
#mmf-details .mmf-d-actions {
    margin-top: 20px;
    display: flex;
    align-items: stretch;
    gap: 12px;
}

#mmf-details .mmf-d-actions--split {
    justify-content: space-between;
    flex-wrap: wrap;
}

#mmf-details button,
#mmf-details button:hover,
#mmf-details button:focus,
#mmf-details button:active {
    box-shadow: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#mmf-details .mmf-details__submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--mmf-primary, #0b91df) !important;
    color: #ffffff !important;
    border: 2px solid var(--mmf-primary, #0b91df) !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-height: 50px !important;
    cursor: pointer;
    font-family: inherit !important;
}

#mmf-details .mmf-details__submit:hover {
    background: #0a7cc2 !important;
    border-color: #0a7cc2 !important;
    color: #ffffff !important;
}

#mmf-details .mmf-details__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#mmf-details .mmf-d-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: var(--mmf-navy, #2f3b54) !important;
    border: 2px solid #d8dee9 !important;
    border-radius: 8px !important;
    padding: 14px 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    min-height: 50px !important;
    cursor: pointer;
    font-family: inherit !important;
}

#mmf-details .mmf-d-back-btn:hover {
    border-color: var(--mmf-primary, #0b91df) !important;
    color: var(--mmf-primary, #0b91df) !important;
    background: #ffffff !important;
}

@media (max-width: 640px) {
    .mmf-details {
        margin: 20px 12px;
        padding: 24px 18px;
    }
    .mmf-details__heading {
        font-size: 22px;
    }
    .mmf-d-address__row--split {
        flex-direction: column;
    }
    .mmf-d-address__field {
        flex: 1;
    }
    .mmf-d-map {
        height: 260px;
    }
}
