/* DIY Order Page Styles */

/* Additional inline styles for specific adjustments */
.diy-order-page .required-star {
  color: #F56C6C;
  margin-right: 4px;
}

/* Page Container */
.diy-order-page .diy-page-container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

/* Content Wrapper */
.diy-order-page .diy-content-wrapper {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
}

/* Page Title and Subtitle */
.diy-order-page .diy-page-title {
  font-size: 22px;
  font-weight: var(--primary-font-weight);
  margin: 0;
}

.diy-order-page .diy-page-subtitle {
  font-size: 15px;
  color: #959595;
  margin-left: 10px;
}

/* Description Text */
.diy-order-page .diy-description-text {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Divider */
.diy-order-page .diy-divider {
  height: 1px;
  background-color: #eee;
  margin-bottom: 30px;
}

/* Step Indicator */
.diy-order-page .diy-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.diy-order-page .diy-step-item {
  position: relative;
  flex: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FCE4D6; /* Light orange for inactive */
  color: #333;
  font-size: 15px;
  font-weight: var(--primary-font-weight);
  text-align: center;
  padding: 0 20px;
  margin-left: 4px;
}

.diy-order-page .diy-step-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: -20px;
  width: 0;
  height: 0;
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  border-left: 20px solid #FCE4D6;
  z-index: 3;
}

.diy-order-page .diy-step-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: -24px;
  width: 0;
  height: 0;
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  border-left: 20px solid #fff;
  z-index: 2;
}

.diy-order-page .diy-step-item:first-child {
  margin-left: 0;
  padding-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.diy-order-page .diy-step-item:last-child {
  padding-right: 0;
}

.diy-order-page .diy-step-item:last-child::before,
.diy-order-page .diy-step-item:last-child::after {
  display: none;
}

.diy-order-page .diy-step-item.active {
  background: var(--primary-orange);
  color: #fff;
}

.diy-order-page .diy-step-item.active::after {
  border-left-color: var(--primary-orange);
}

/* Main Form Area */
.diy-order-page .diy-form-container {
  background: transparent;
  padding: 0;
  border: none;
}

.diy-order-page .form-section {
  margin-bottom: 30px;
}

.diy-order-page .form-section-title {
  font-size: 16px;
  font-weight: var(--primary-font-weight);
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none; /* Removed border */
  padding-bottom: 0; /* Removed padding */
}

.diy-order-page .shipping-calc-btn {
  font-size: 13px;
  color: var(--text-secondary);
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd;
}

/* Form Items */
.diy-order-page .el-form-item__label {
  font-weight: var(--primary-font-weight);
  color: #333;
  padding-right: 12px;
}

/* Custom required asterisk styling */
.diy-order-page .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label:before, 
.diy-order-page .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label:before {
  color: #F56C6C;
  margin-right: 4px;
}

/* Fees Info */
.diy-order-page .fees-info-section {
  margin-top: 30px;
}

.diy-order-page .currency-input .el-input__wrapper {
  padding-left: 8px;
}

.diy-order-page .upload-box {
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  background-color: #fff;
}

.diy-order-page .upload-box:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.diy-order-page .uploaded-image-preview {
  width: 100px; 
  height: 100px; 
  border-radius: 4px; 
  overflow: hidden;
  border: 1px solid #ddd;
}

.diy-order-page .upload-tip {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 4px; /* Align visually with the box content or bottom */
  max-width: 200px;
}

/* Total Bar - Sticky Bottom or Fixed Layout */
.diy-order-page .total-bar {
  margin-top: 30px;
  background: #F5F7FA;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0; /* Full width look */
}

.diy-order-page .total-price-section {
  display: flex;
  align-items: center;
}

.diy-order-page .total-price-section span {
  font-size: 20px;
  font-weight: var(--primary-font-weight);
  color: #333;
}

.diy-order-page .estimate-link {
  font-size: 13px;
  color:#145AFA;
  text-decoration: underline;
  margin-left: 10px;
  cursor: pointer;
}

.diy-order-page .action-buttons {
  display: flex;
  gap: 16px;
}

.diy-order-page .btn-add-cart {
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  width: 140px;
  height: 44px;
  font-size: 16px;
  background: #fff;
  font-weight: var(--primary-font-weight);
}

.diy-order-page .btn-buy-now {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #fff;
  width: 140px;
  height: 44px;
  font-size: 16px;
  font-weight: var(--primary-font-weight);
}

.diy-order-page .btn-buy-now:hover {
  background: #E65100;
  border-color: #E65100;
}

/* Right Sidebar */
.diy-order-page .info-box {
  background: #fff;
  padding: 0 0 20px 0;
  border-radius: 4px;
  margin-bottom: 20px;
}

.diy-order-page .info-title {
  font-size: 16px;
  font-weight: var(--primary-font-weight);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.diy-order-page .info-content {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.diy-order-page .info-content a {
  color: #145AFA;
  text-decoration: none;
}

.diy-order-page .info-content a:hover {
  text-decoration: underline;
}
