/* =============================================
   Ask For Price - Modal Styles
   ============================================= */

#ciaskpriceModal {
  z-index: 99999;
}

#ciaskpriceModal .modal-header {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 20px;
  border-radius: 4px 4px 0 0;
}

#ciaskpriceModal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

#ciaskpriceModal .modal-body {
  padding: 24px 20px 20px;
}

/* Form layout */
#ciaskpriceModal .form-horizontal .control-label {
  text-align: left;
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

#ciaskpriceModal .form-group {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0 !important;
  margin-bottom: 16px;
  padding-left: 8px;
  padding-right: 8px;
}

#ciaskpriceModal .row {
  margin-left: -8px;
  margin-right: -8px;
}

/* Inputs */
#ciaskpriceModal .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  color: #333;
  background: #fff;
  height: 40px;
  width: 100%;
  transition: border-color 0.2s ease;
  box-shadow: none;
}

#ciaskpriceModal .form-control:focus {
  border-color: #5b9bd5;
  outline: none;
  box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.15);
}

#ciaskpriceModal textarea.form-control {
  height: auto;
  min-height: 90px;
  resize: vertical;
}

/* Required asterisk */
#ciaskpriceModal .form-group.required .control-label::after {
  content: ' *';
  color: #e74c3c;
  font-weight: bold;
}

/* Error states */
#ciaskpriceModal .text-danger {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  display: block;
}

/* Terms & Conditions */
#ciaskpriceModal .termcondition_text {
  margin: 16px 0 12px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

#ciaskpriceModal .termcondition_text a {
  color: #5b9bd5;
  font-weight: 600;
  text-decoration: none;
}

#ciaskpriceModal .termcondition_text a:hover {
  text-decoration: underline;
}

#ciaskpriceModal .ciaskprice_terms {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Submit button */
#ciaskpriceModal .button-ciaskprice.btn-primary {
  background: #4a7c3f;
  border-color: #3d6834;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 4px;
  margin-top: 8px;
  transition: background 0.2s ease;
}

#ciaskpriceModal .button-ciaskprice.btn-primary:hover {
  background: #3d6834;
  border-color: #325929;
}

/* Captcha */
#ciaskpriceModal .cicaptcha {
  clear: both;
  margin-top: 8px;
}

/* Loader */
.loader_ci {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.75);
  display: none;
  border-radius: 4px;
}

.loader_ci.ci_active {
  display: block;
}

.loader_ci img {
  width: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Header/separator fields */
#ciaskpriceModal .cifield-header {
  background: #f0f4f8;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid #5b9bd5;
  clear: both;
  width: 100%;
}

#ciaskpriceModal .cifield-paragraph {
  font-size: 13px;
  color: #666;
  clear: both;
}

#ciaskpriceModal .cifield-hrline {
  clear: both;
  border-top: 1px solid #eee;
  margin: 8px 0;
}

/* Toggle switches */
.cifield-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
}

.cifield-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cifield-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
}

.cifield-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}

input:checked + .cifield-slider { background-color: #5b9bd5; }
input:focus + .cifield-slider { box-shadow: 0 0 0 2px rgba(91,155,213,0.3); }
input:checked + .cifield-slider:before { transform: translateX(24px); }

.cifield-slider.round { border-radius: 26px; }
.cifield-slider.round:before { border-radius: 50%; }

/* Button group toggles */
#ciaskpriceModal .btn-default {
  background: #fff;
  color: #555;
  border-color: #ddd;
}

#ciaskpriceModal .btn-group .active,
#ciaskpriceModal .btn-group .btn:hover {
  background: #5b9bd5;
  color: #fff;
  border-color: #5b9bd5;
}

/* Cart button override */
.button-ciaskprice::before,
.btn-cart.button-ciaskprice::before,
.btn-extra.button-ciaskprice::before {
  content: '' !important;
}

.main-products.product-list .product-thumb .btn-cart.button-ciaskprice::before {
  content: '' !important;
}

.has-zero-price.has-ciaskprice .product-thumb .cart-group {
  display: block !important;
}

/* File upload */
#ciaskpriceModal .text-help {
  margin-bottom: 3px;
  font-size: 11px;
  color: #888;
}

#ciaskpriceModal .upload-wise .text-message {
  margin-top: 4px;
}

/* Alerts inside modal */
#ciaskpriceModal .alert {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 12px;
}
