/* ============================================================
   Medical Courier Form — Plugin Stylesheet
   Scoped under .mcf-wrapper to avoid WP theme conflicts
============================================================ */

/* --- Base Reset (scoped) ----------------------------------- */
.mcf-wrapper *,
.mcf-wrapper *::before,
.mcf-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Wrapper ----------------------------------------------- */
.mcf-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    max-width: 720px;
    margin: 0 auto 32px auto;
}

.mcf-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* --- Card -------------------------------------------------- */
.mcf-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 28px 24px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
}

/* --- Grid Rows --------------------------------------------- */
.mcf-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.mcf-row:last-child {
    margin-bottom: 0;
}

.mcf-col {
    flex: 1;
    min-width: 0;
}

.mcf-full {
    flex: 1 0 100%;
}

/* Three-column row */
.mcf-row-three .mcf-col {
    flex: 1;
}

/* --- Labels ----------------------------------------------- */
.mcf-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
    text-transform: none;
}

/* --- Inputs & Selects ------------------------------------- */
.mcf-input,
.mcf-select,
.mcf-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    appearance: none;
    -webkit-appearance: none;
}

.mcf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.mcf-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.mcf-input:focus,
.mcf-select:focus,
.mcf-textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.mcf-input-datetime {
    cursor: pointer;
}

/* --- Priority Buttons ------------------------------------- */
.mcf-priority-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mcf-radio-hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.mcf-priority-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 7px;
    border: 1.8px solid transparent;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
    white-space: nowrap;
}

/* URGENT */
.mcf-urgent {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff5f5;
}
.mcf-radio-hidden:checked + .mcf-urgent,
.mcf-urgent:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,.25);
}

/* EXPRESS */
.mcf-express {
    color: #d97706;
    border-color: #fcd34d;
    background: #fffbeb;
}
.mcf-radio-hidden:checked + .mcf-express,
.mcf-express:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    box-shadow: 0 2px 8px rgba(217,119,6,.25);
}

/* STANDARD */
.mcf-standard {
    color: #16a34a;
    border-color: #86efac;
    background: #f0fdf4;
}
.mcf-radio-hidden:checked + .mcf-standard,
.mcf-standard:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,.25);
}

/* --- HIPAA Checkbox --------------------------------------- */
.mcf-hipaa-row {
    margin-bottom: 20px;
}

.mcf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1;
}

.mcf-checkbox {
    display: none;
}

.mcf-checkmark {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.8px solid #9ca3af;
    border-radius: 4px;
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: border-color .15s, background .15s;
    position: relative;
}

.mcf-checkbox:checked + .mcf-checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.mcf-checkbox:checked + .mcf-checkmark::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.mcf-hipaa-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

/* --- Submit Button ---------------------------------------- */
.mcf-submit-btn {
    display: block;
    width: 100%;
    padding: 13px 24px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.2px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background .18s, transform .1s, box-shadow .18s;
    box-shadow: 0 2px 10px rgba(37,99,235,.3);
}

.mcf-submit-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

.mcf-submit-btn:active {
    transform: translateY(1px);
}

.mcf-submit-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Messages --------------------------------------------- */
.mcf-success-msg,
.mcf-error-msg {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.45;
}

.mcf-success-msg {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}

.mcf-error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 620px) {
    .mcf-form-card {
        padding: 20px 16px 18px 16px;
    }
    .mcf-row,
    .mcf-row-three {
        flex-direction: column;
    }
    .mcf-col {
        width: 100%;
    }
    .mcf-row-top {
        flex-direction: column;
    }
}
