/* Optional modern checkout styling extracted from previous inline styles.
   Re-enable by linking this file from checkout.php if desired. */
.chkbox{background:#fff;padding:32px;margin:12px 0;border-radius:16px}
.chkbox:hover{}
.chkbox h4{color:#1f2937;font-weight:700;margin-bottom:20px;display:flex;align-items:center;gap:12px}
/* Ensure header and dropdowns are always on top in checkout */
header, header .navbar, header .dropdown-menu, .sticky-header{z-index:1000!important}
header .dropdown-menu{z-index:1100!important}
/* Override Bootstrap mb-3 (16px) with 10px spacing for all input boxes */
.chk_input_box{margin-bottom:10px!important}
.row .chk_input_box{margin-bottom:10px!important}
.row > .chk_input_box{margin-bottom:10px!important}
.row > [class*="col-"].chk_input_box{margin-bottom:10px!important;padding: 5px}
form .chk_input_box{margin-bottom:10px!important}
.needs-validation .chk_input_box{margin-bottom:10px!important}
/* Add spacing between row groups */
.needs-validation > .row{margin-bottom:10px}
.chk_input_box_label{font-size:14px;font-weight:600;color:#374151;margin-bottom:8px;display:block}
.chk_input_box .form-control{border:2px solid #e5e7eb;border-radius:10px;padding:12px 16px;font-size:15px;transition:.2s;background:#fafafa;color:#1f2937}
.chk_input_box .form-control:focus{border-color:#f97316;background:#fff;box-shadow:0 0 0 4px rgba(249,115,22,.1);outline:none}
.payrow{padding:16px 20px;margin:8px 0;border-radius:12px;border:2px solid #e5e7eb;background:#fafafa;transition:.2s;cursor:pointer}
.payrow:hover{background:#fff5f0;border-color:#f97316;box-shadow:0 2px 8px rgba(249,115,22,.15)}
.payrow.selected{background:linear-gradient(135deg,#fff5f0 0%,#ffedd5 100%);border-color:#f97316;box-shadow:0 4px 12px rgba(249,115,22,.2)}
.field-error{border-color:#ef4444!important;box-shadow:0 0 0 4px rgba(239,68,68,.12)!important}
.field-ok{border-color:#22c55e!important;box-shadow:0 0 0 4px rgba(34,197,94,.12)!important}
.terms-error{display:none;background:#fef2f2;border:2px solid #fca5a5;color:#dc2626;padding:12px 16px;border-radius:8px;margin-top:12px;font-size:14px;font-weight:600}
.terms-error.show{display:block}
.btn-primary.btn-lg{background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);border:none;border-radius:12px;padding:18px 32px;font-size:18px;font-weight:700;letter-spacing:.5px;transition:.3s;box-shadow:0 4px 12px rgba(249,115,22,.3)}
.btn-primary.btn-lg:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(249,115,22,.4)}
.btn-primary.btn-lg:disabled{background:#9ca3af;cursor:not-allowed;opacity:.6}
.list-group-item{border:none;padding:16px;margin-bottom:8px;border-radius:10px;background:#fafafa;transition:.2s}
.list-group-item:hover{background:#f5f5f5}
.list-group-item:last-of-type{background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:#fff;font-size:18px;padding:20px;box-shadow:0 4px 12px rgba(249,115,22,.3)}
.list-group-item img{object-fit:contain;border-radius:8px;background:#fff;padding:4px;border:1px solid #e5e7eb}
.list-group-item h6{margin:0;font-weight:600;color:#1f2937}
.list-group-item small{font-size:0.875rem;color:#6b7280;display:block;margin-top:4px}

/* Terms Modal Styling */
.terms-modal{display:none;position:fixed;z-index:10000;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0,0,0,0.6);backdrop-filter:blur(4px)}
.terms-modal.show{display:flex;align-items:center;justify-content:center}
.terms-modal-content{background:#fff;margin:20px;padding:0;border-radius:16px;width:90%;max-width:800px;max-height:85vh;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.3);display:flex;flex-direction:column}
.terms-modal-header{background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:white;padding:24px 32px;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #fed7aa}
.terms-modal-header h2{margin:0;font-size:24px;font-weight:700;display:flex;align-items:center;gap:12px}
.terms-modal-close{color:white;font-size:32px;font-weight:300;cursor:pointer;background:rgba(255,255,255,0.2);border:none;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all 0.2s ease;line-height:1;padding:0}
.terms-modal-close:hover{background:rgba(255,255,255,0.3);transform:rotate(90deg)}
.terms-modal-body{padding:32px;overflow-y:auto;flex:1;color:#374151;line-height:1.8}
.terms-modal-body h3{color:#f97316;font-size:20px;font-weight:700;margin-top:24px;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #fed7aa}
.terms-modal-body p{margin-bottom:16px}
.terms-modal-footer{background:#f9fafb;padding:20px 32px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px}
.terms-modal-footer button{padding:12px 24px;border-radius:8px;font-weight:600;cursor:pointer;transition:all 0.2s ease;border:none}
.terms-accept-btn{background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:white}
.terms-accept-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(249,115,22,0.4)}
.terms-close-btn{background:#e5e7eb;color:#374151}
.terms-close-btn:hover{background:#d1d5db}
.terms-checkbox-wrapper{display:flex;align-items:flex-start;gap:22px}
.terms-checkbox-wrapper input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:20px;height:20px;min-width:20px;cursor:pointer;margin-top:2px;border:2px solid #f97316;border-radius:4px;background:#ffffff;position:relative;outline:none}
.terms-checkbox-wrapper input[type="checkbox"]:checked{background:#f97316;border-color:#f97316}
.terms-checkbox-wrapper input[type="checkbox"]::after{content:'';position:absolute;display:none;left:5px;top:1px;width:6px;height:12px;border:solid #ffffff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.terms-checkbox-wrapper input[type="checkbox"]:checked::after{display:block}
.terms-label{font-size:15px;color:#374151;line-height:1.6;cursor:pointer;user-select:none}
.terms-label a{color:#f97316;font-weight:600;text-decoration:none;border-bottom:1px solid transparent;transition:all 0.2s ease}
.terms-label a:hover{border-bottom-color:#f97316}
.terms-container{background:transparent;border:none;padding:20px 0 20px 35px;margin:20px 0}
@media (max-width:768px){
.terms-modal-content{width:95%;margin:10px;max-height:90vh}
.terms-modal-header{padding:20px}
.terms-modal-header h2{font-size:20px}
.terms-modal-body{padding:20px}
.terms-modal-footer{padding:16px 20px}
}

