/* Order Modal Styles */

.order-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.7);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.order-modal-content {
  background-color: #fefefe;
  margin: 3% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  padding: 15px 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: #a3a04e;
}

.modal-title {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  padding: 20px 30px 15px;
  border-bottom: 2px solid #a3a04e;
  clear: both;
}

.order-form {
  padding: 30px;
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  color: #a3a04e;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f5f1;
}

.service-group {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #a3a04e;
}

.service-main {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  margin-bottom: 0;
}

.service-main input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: #a3a04e;
}

.service-main span {
  user-select: none;
}

.sub-options {
  margin-left: 32px;
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.sub-options label {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}

.sub-options label:hover {
  color: #a3a04e;
}

.sub-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #FED450;
}

.sub-sub-options {
  margin-left: 28px;
  margin-top: 10px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 4px;
  border-left: 3px solid #FED450;
}

.sub-sub-options label {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.sub-sub-options label:hover {
  color: #FED450;
}

.sub-sub-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #FED450;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'DM Sans', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a3a04e;
  box-shadow: 0 0 0 3px rgba(67, 171, 146, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.btn-submit,
.btn-cancel {
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}

.btn-submit {
  background-color: #a3a04e;
  color: white;
  box-shadow: 0 4px 12px rgba(67, 171, 146, 0.3);
}

.btn-submit:hover {
  background-color: #FED450;
  box-shadow: 0 6px 16px rgba(254, 212, 80, 0.4);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-cancel {
  background-color: #f5f5f5;
  color: #666;
  border: 2px solid #ddd;
}

.btn-cancel:hover {
  background-color: #e8e8e8;
  border-color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 22px;
    padding: 15px 20px 12px;
  }

  .order-form {
    padding: 20px;
  }

  .form-section h3 {
    font-size: 18px;
  }

  .service-main {
    font-size: 16px;
  }

  .sub-options {
    margin-left: 20px;
    padding: 12px;
  }

  .sub-options label {
    font-size: 15px;
  }

  .sub-sub-options {
    margin-left: 20px;
    padding: 10px;
  }

  .sub-sub-options label {
    font-size: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-cancel {
    width: 100%;
  }
}

/* Scrollbar Styling for Modal */
.order-modal-content::-webkit-scrollbar {
  width: 10px;
}

.order-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.order-modal-content::-webkit-scrollbar-thumb {
  background: #a3a04e;
  border-radius: 10px;
}

.order-modal-content::-webkit-scrollbar-thumb:hover {
  background: #369f82;
}


/* Channel Selection Styles */
.channel-selection {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.channel-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.channel-option input[type="radio"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #a3a04e;
}

.channel-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
}

.channel-label i {
  margin-right: 8px;
  font-size: 20px;
  color: #a3a04e;
}

.channel-option input[type="radio"]:checked + .channel-label {
  color: #a3a04e;
  font-weight: 600;
}

@media (max-width: 600px) {
  .channel-selection {
    flex-direction: column;
    gap: 12px;
  }

  .channel-option {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
  }

  .channel-option input[type="radio"]:checked + .channel-label {
    background: #e8f5f1;
    padding: 0;
  }
}