/* =========================================================
   RideMonkey Add Service — Page Styling
   ========================================================= */

.rm-add-service {
    width: 100%;
}

.rm-add-service .rm-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.rm-service-form-card {
    width: 100%;
    padding: 20px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}


/* ---------------------------------------------------------
   Form fields
   --------------------------------------------------------- */

.rm-form-field {
    margin-bottom: 16px;
}

.rm-form-field label {
    display: block;
    margin-bottom: 6px;

    color: #222222;

    font-size: 14px;
    font-weight: 600;
}

.rm-form-optional {
    color: #999999;

    font-size: 12px;
    font-weight: 500;
}

.rm-form-hint {
    margin: 6px 0 0;

    color: #666666;

    font-size: 13px;
    line-height: 1.4;
}

.rm-form-hint a {
    color: #ff4b00;
}

.rm-mileage-hint {
    margin: 6px 0 0;

    color: #666666;

    font-size: 13px;
    line-height: 1.4;
}

.rm-mileage-hint strong {
    color: #222222;
}

.rm-form-field input,
.rm-form-field select,
.rm-form-field textarea {
    width: 100%;
    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    color: #222222;

    font-size: 15px;
    font-family: inherit;

    transition: border-color 0.15s ease;
}

.rm-form-field input:focus,
.rm-form-field select:focus,
.rm-form-field textarea:focus {
    outline: none;

    border-color: #ff4b00;
}

.rm-form-field textarea {
    resize: vertical;
}


/* ---------------------------------------------------------
   Submit button
   --------------------------------------------------------- */

.rm-form-submit {
    display: flex;
    width: 100%;

    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 10px 20px;

    background: #ff4b00;

    border: none;
    border-radius: 10px;

    color: #ffffff;
    cursor: pointer;

    font-size: 15px;
    font-weight: 700;

    transition: background 0.15s ease;
}

.rm-form-submit:hover,
.rm-form-submit:focus {
    background: #e04300;
}


/* =========================================================
   Mobile
   ========================================================= */

/* ---------------------------------------------------------
   File uploads — shared across documents and MOT
   --------------------------------------------------------- */

.rm-uploaded-file-image-link {
    display: block;
}

.rm-uploaded-file-image {
    display: block;
    width: 100%;
    max-height: 240px;

    object-fit: cover;

    border-radius: 10px;
}

.rm-uploaded-file-link {
    display: inline-flex;

    align-items: center;
    gap: 6px;

    padding: 10px 14px;

    background: #faf9f6;

    border: 1px solid #dddddd;
    border-radius: 8px;

    color: #ff4b00;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.rm-document-file-preview {
    padding: 14px 18px 0;
}

.rm-existing-file-preview {
    margin-bottom: 10px;
}

.rm-upload-error {
    margin: 0 0 16px;
    padding: 10px 12px;

    background: #fdecea;
    border-radius: 8px;

    color: #c0392b;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .rm-service-form-card {
        padding: 16px;
    }

    .rm-form-field input,
    .rm-form-field select,
    .rm-form-field textarea {
        font-size: 14px;
    }

}


/* ---------------------------------------------------------
   Dynamic "also covers" checkboxes (JS-populated)
   --------------------------------------------------------- */

.rm-covers-section {
    margin: -6px 0 16px;
    padding: 12px 14px;

    background: #faf9f6;

    border: 1px solid #eeeeee;
    border-radius: 10px;
}

.rm-covers-section .rm-form-hint {
    margin: 0 0 8px;
}

.rm-covers-checkbox {
    display: flex;

    align-items: center;
    gap: 6px;
    margin-bottom: 6px;

    color: #222222;

    font-size: 13px;
}

.rm-covers-add-more {
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid #eeeeee;
}

.rm-covers-add-more summary {
    color: #ff4b00;
    cursor: pointer;

    font-size: 12px;
    font-weight: 600;
}

.rm-covers-add-more-options {
    margin-top: 8px;
}