/* MVSC Intake Form Styles */
#mvsc-form-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
}

/* Progress Bar */
.mvsc-progress {
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.mvsc-progress-bar {
    background: linear-gradient(90deg, #2b6cb0, #3182ce);
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 20%;
}

/* Step Dots */
.mvsc-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.mvsc-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.mvsc-step-dot.active {
    background: #2b6cb0;
    color: #fff;
}
.mvsc-step-dot.done {
    background: #38a169;
    color: #fff;
}

/* Section Header */
.mvsc-section-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}
.mvsc-section-header h2 {
    color: #2b6cb0;
    font-size: 24px;
    margin-bottom: 6px;
}
.mvsc-subtitle {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Steps */
.mvsc-step { display: none; }
.mvsc-step.active { display: block; }

/* Cards */
.mvsc-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 22px;
}
.mvsc-card h3 {
    color: #2d3748;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Field Groups */
.mvsc-field-group {
    margin-bottom: 18px;
}
.mvsc-field-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #4a5568;
}
.mvsc-field-group input[type="text"],
.mvsc-field-group input[type="email"],
.mvsc-field-group input[type="date"],
.mvsc-field-group input[type="time"],
.mvsc-field-group textarea,
.mvsc-field-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.mvsc-field-group input:focus,
.mvsc-field-group textarea:focus,
.mvsc-field-group select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}
.mvsc-field-group small {
    color: #718096;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.mvsc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .mvsc-field-row { grid-template-columns: 1fr; }
}

/* Initials Input */
.mvsc-initial-input {
    width: 70px !important;
    text-align: center;
    font-weight: 700;
    font-size: 15px !important;
    text-transform: uppercase;
    border: 2px solid #3182ce !important;
    border-radius: 6px;
    padding: 8px !important;
    flex-shrink: 0;
}

/* Initial Rows */
.mvsc-initial-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}
.mvsc-initial-row:last-child { border-bottom: none; margin-bottom: 0; }
.mvsc-initial-row p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

/* Anesthesia Rows */
.mvsc-anesthesia-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}
.mvsc-anesthesia-row:last-child { border-bottom: none; }
.mvsc-anesthesia-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.mvsc-anesthesia-row label {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

/* Radio Labels */
.mvsc-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}
.mvsc-radio-label input { margin-top: 3px; flex-shrink: 0; }

/* Signature Field */
.mvsc-signature-field {
    font-style: italic !important;
    font-size: 17px !important;
    color: #2b6cb0 !important;
    border-bottom: 2px solid #2b6cb0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* Read-Only Content */
.mvsc-readonly-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 22px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
}
.mvsc-readonly-content h3 {
    font-size: 15px;
    color: #2d3748;
    margin-top: 20px;
}

/* Acknowledge Box */
.mvsc-acknowledge-box {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}
.mvsc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}
.mvsc-checkbox-label input { width: 18px; height: 18px; }

/* Note */
.mvsc-note {
    background: #fffbeb;
    border-left: 4px solid #f6ad55;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* Required */
.req { color: #e53e3e; }

/* Buttons */
.mvsc-nav-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}
.mvsc-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.mvsc-btn-primary {
    background: #2b6cb0;
    color: #fff;
    margin-left: auto;
}
.mvsc-btn-primary:hover { background: #2c5282; }
.mvsc-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}
.mvsc-btn-secondary:hover { background: #cbd5e0; }
.mvsc-btn-success {
    background: #38a169;
    color: #fff;
    margin-left: auto;
}
.mvsc-btn-success:hover { background: #276749; }
.mvsc-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Error */
.mvsc-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 14px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* Success Box */
.mvsc-success-box {
    background: #f0fff4;
    border: 2px solid #38a169;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}
.mvsc-success-box h2 { color: #276749; font-size: 26px; }
.mvsc-success-box p { font-size: 16px; color: #2d3748; }
