/* ============================================================
   MRS Patient Report — Frontend Form Styles
   থিম রঙের সাথে সামঞ্জস্যপূর্ণ
   ============================================================ */

:root {
    --pr-primary:    #0066b3;
    --pr-primary-dk: #1f2b4c;
    --pr-success:    #16a34a;
    --pr-error:      #dc2626;
    --pr-border:     #e5e7eb;
    --pr-bg:         #f9fafb;
    --pr-radius:     10px;
    --pr-shadow:     0 4px 24px rgba(0,0,0,0.08);
    --pr-font:       inherit;
}

/* ── Wrapper ─────────────────────────────────────── */
.mrs-pr-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--pr-font);
}

/* ── Header ──────────────────────────────────────── */
.mrs-pr-header {
    text-align: center;
    margin-bottom: 32px;
}

.mrs-pr-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--pr-primary), #0084d4);
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0,102,179,0.25);
}

.mrs-pr-header-icon svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
}

.mrs-pr-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pr-primary-dk);
    margin: 0 0 8px;
}

.mrs-pr-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* ── Alert messages ──────────────────────────────── */
.mrs-pr-success-msg,
.mrs-pr-error-msg {
    padding: 16px 20px;
    border-radius: var(--pr-radius);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 24px;
    animation: mrs-pr-fadein 0.4s ease;
}

.mrs-pr-success-msg {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.mrs-pr-error-msg {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

@keyframes mrs-pr-fadein {
    from { opacity:0; transform: translateY(-8px); }
    to   { opacity:1; transform: translateY(0);    }
}

/* ── Form Card ───────────────────────────────────── */
.mrs-pr-form {
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--pr-shadow);
}

@media (max-width: 600px) {
    .mrs-pr-form { padding: 20px; }
}

/* ── Row / Field ─────────────────────────────────── */
.mrs-pr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .mrs-pr-row { grid-template-columns: 1fr; }
}

.mrs-pr-field-wrap {
    display: flex;
    flex-direction: column;
}

.mrs-pr-full {
    margin-bottom: 20px;
}

.mrs-pr-field-wrap label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pr-primary-dk);
    margin-bottom: 7px;
    display: block;
}

.mrs-pr-field-wrap label .required {
    color: var(--pr-error);
    margin-left: 2px;
}

.mrs-pr-field-wrap label .optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.8rem;
}

.mrs-pr-form input[type="text"],
.mrs-pr-form input[type="tel"],
.mrs-pr-form input[type="email"],
.mrs-pr-form input[type="number"],
.mrs-pr-form input[type="date"],
.mrs-pr-form select,
.mrs-pr-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--pr-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.mrs-pr-form input:focus,
.mrs-pr-form select:focus,
.mrs-pr-form textarea:focus {
    border-color: var(--pr-primary);
    box-shadow: 0 0 0 3px rgba(0,102,179,0.12);
}

.mrs-pr-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* Date input — full field clickable */
.mrs-pr-form input[type="date"] {
    cursor: pointer;
}


/* ── Drop Zone ───────────────────────────────────── */
.mrs-pr-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--pr-bg);
    position: relative;
}

.mrs-pr-dropzone:hover,
.mrs-pr-dropzone.dragover {
    border-color: var(--pr-primary);
    background: #eff6ff;
}

.mrs-pr-drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(0,102,179,0.1);
    border-radius: 50%;
    margin-bottom: 12px;
}

.mrs-pr-drop-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--pr-primary);
}

.mrs-pr-drop-text {
    margin: 0 0 6px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

.mrs-pr-browse-link {
    color: var(--pr-primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.mrs-pr-drop-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ── File Preview ────────────────────────────────── */
.mrs-pr-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mrs-pr-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pr-bg);
    border: 1px solid var(--pr-border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.83rem;
    color: var(--pr-primary-dk);
    animation: mrs-pr-fadein 0.3s ease;
}

.mrs-pr-file-chip .chip-remove {
    cursor: pointer;
    color: var(--pr-error);
    font-size: 1rem;
    line-height: 1;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.mrs-pr-file-chip .chip-remove:hover {
    transform: scale(1.3);
}

/* ── Progress Bar ────────────────────────────────── */
.mrs-pr-progress-wrap {
    margin: 16px 0;
    text-align: center;
}

.mrs-pr-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mrs-pr-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pr-primary), #0084d4);
    border-radius: 99px;
    transition: width 0.3s ease;
    animation: mrs-pr-progress-pulse 1.5s ease infinite;
}

@keyframes mrs-pr-progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#mrs-pr-progress-text {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ── Submit Button ───────────────────────────────── */
.mrs-pr-submit-wrap {
    text-align: center;
    margin-top: 8px;
}

.mrs-pr-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--pr-primary), #0084d4);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,102,179,0.35);
    min-width: 200px;
    font-family: inherit;
}

.mrs-pr-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,102,179,0.45);
}

.mrs-pr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mrs-pr-spin {
    animation: mrs-pr-rotate 0.8s linear infinite;
}

@keyframes mrs-pr-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.mrs-pr-disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ============================================================
   Force Full Width Layout & Hide Sidebar overrides
   ============================================================ */
body.mrs-pr-fullwidth-page #secondary,
body.mrs-pr-fullwidth-page .sidebar,
body.mrs-pr-fullwidth-page aside,
body.mrs-pr-fullwidth-page .widget-area {
    display: none !important;
}

body.mrs-pr-fullwidth-page .col-lg-8 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

body.mrs-pr-fullwidth-page #primary,
body.mrs-pr-fullwidth-page .content-area,
body.mrs-pr-fullwidth-page .site-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

