/* Order Add page styles using theme variables from brand_overrides.css */

/* Utilities */
.m-t-30 { margin-top: 30px !important; }
.m-t-50 { margin-top: 50px !important; }
.m-b-30 { margin-bottom: 30px !important; }

/* Containers */
.white_card { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; }
.white_card_header { padding: 12px 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; background: var(--bg-light); }
.white_card_body { padding: 20px; background: var(--bg-light); }

/* Titles */
.content-header-title h4, .content-header-title h6 { color: var(--primary); font-weight: 600; margin-bottom: 12px; }
.content-header-title h4 { font-size: 1.1rem; }
.content-header-title h6 { font-size: 0.95rem; }

/* Inputs */
.form-control, .form-control.square, .input-tags, .datepicker, textarea.form-control { background: var(--bg-off-white) !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; border-radius: 8px; box-shadow: none; }
.form-control:focus, .form-control.square:focus, .input-tags:focus, .datepicker:focus, textarea.form-control:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 0.2rem rgba(76,175,80,0.15) !important; }

/* Readonly blocks (resume) */
.order_resume input[readonly], .order_resume textarea[readonly] { background: var(--bg-off-white); color: var(--text-primary); border: 1px solid var(--border-color); }

/* Total charge pill */
.total_charge { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-size: 0.95rem; font-weight: 600; display: inline-block; cursor: default; }
.total_charge .charge_number { margin-left: 8px; color: #fff; }
.text-muted { color: var(--text-secondary) !important; }

/* Alert blocks */
.alert.alert-success { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.alert.alert-success h4.alert-heading { color: #fff; }
.alert-icon.alert-danger { background: #DC3545; color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* Custom checkbox */
.custom-control { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.custom-control-input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.custom-control-label { color: var(--text-primary); font-size: 0.9rem; text-transform: uppercase; }

/* Buttons */
.btn_2, .btn.btn_1 { width: 100%; background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 12px; transition: background .2s, transform .2s; }
.btn_2:hover, .btn.btn_1:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Tabs (if used) */
.nav.nav-tabs { border-bottom: none; display: flex; gap: 12px; }
.nav.nav-tabs .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 0.9rem; color: var(--text-secondary); background: var(--bg-off-white); border: 1px solid var(--border-color); border-radius: 6px; transition: background .2s, color .2s, border-color .2s; }
.nav.nav-tabs .nav-link:hover { background: var(--bg-card); color: var(--text-primary); }
.nav.nav-tabs .nav-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Page title (if used) */
.page-title h1 { font-size: 1.5rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.page-title .border-line { height: 4px; width: 200px; background: var(--primary); border-radius: 20px; position: relative; overflow: hidden; }
.page-title .border-line::before { content: ''; position: absolute; left: 0; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-primary); animation: moveDot 5s linear infinite; }
@keyframes moveDot { from { transform: translateX(0); } to { transform: translateX(192px); } }

/* Modal overlay (disclaimer) */
.modal-overlay { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; width: 70%; max-width: 320px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); overflow: hidden; display: flex; flex-direction: column; }
.modal-header { text-align: center; padding: 16px 12px 8px; }
.modal-header .info-circle { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: 16px; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 6px; }
.modal-header h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-primary); }
.modal-body { padding: 0 16px 16px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.modal-body ul { list-style: none; margin: 0; padding: 0; }
.modal-body ul li { margin-bottom: 10px; padding-left: 4px; position: relative; }
.modal-body ul li:first-child { color: var(--primary); font-weight: 600; }
.modal-footer { padding: 10px 16px 16px; text-align: right; }
.modal-footer button { background: var(--primary); color: #fff; border: none; border-radius: 18px; padding: 8px 18px; font-size: 14px; cursor: pointer; transition: background .15s, transform .15s; }
.modal-footer button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Service description block (replaces inline style) */
.service-desc { padding: 10px; min-height: 200px; background: var(--bg-off-white); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); }

/* Iframe (video) */
.aff-iframe-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-light); border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.aff-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .col-md-6, .col-md-10 { width: 100%; margin-bottom: 20px; }
  .order_resume { margin-top: 30px; }
}
