/* General styles */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container-main.initial-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.container-main {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.header {
  background: linear-gradient(135deg, #1B4D3E, #2c775d);
  color: white;
  padding: 40px;
  text-align: center;
}

.header h1 {
  font-family: 'Cormorant', serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 0;
  flex-grow: 1;
  align-items: flex-start;
}

.customizer-panel {
  padding: 40px;
}

/* Preview styles temporarily disabled
.preview-panel {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
*/

.step {
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-header:hover {
  background: #e9ecef;
  border-color: #1B4D3E;
}

.step-header.completed {
  background: #d4edda;
  border-color: #28a745;
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1B4D3E;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: bold;
  flex-shrink: 0;
}

.step-number.completed {
  background: #28a745;
}

.step-title {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1B4D3E;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-icon {
  font-size: 1.3rem;
  opacity: 0.8;
}

.step-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  margin-top: 0;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.7s ease, padding 0.5s ease, margin 0.5s ease, opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

.step.active .step-content {
  max-height: 3000px;
  /* Adjust if content is larger */
  padding: 20px;
  margin-top: 15px;
  border-color: #e9ecef;
  opacity: 1;
  transform: translateY(0);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.option-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.option-card:hover {
  border-color: #1B4D3E;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.option-card.selected {
  border-color: #1B4D3E;
  background: #ebf3fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 77, 62, 0.2);
}

.option-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #f0f0f0;
}

.option-card h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1B4D3E;
  margin-bottom: 5px;
}

.option-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
  transform: scale(1.1);
  border-color: #333;
}

.color-option.selected {
  border-color: #1B4D3E;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(27, 77, 62, 0.3);
}

.color-option::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #1B4D3E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.color-option.selected::after {
  opacity: 1;
}

.text-input-group {
  margin: 20px 0;
}

.text-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1B4D3E;
}

.text-input-group input,
.text-input-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.text-input-group input:focus,
.text-input-group textarea:focus {
  outline: none;
  border-color: #1B4D3E;
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.2);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  transition: color 0.3s ease;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
  padding-left: 40px;
  width: 100%;
}

.input-with-icon input:focus+i,
.input-with-icon select:focus+i,
.input-with-icon textarea:focus+i {
  color: #1B4D3E;
}

/* Preview styles temporarily disabled
.preview-card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-title {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1B4D3E;
  text-align: center;
}

.gown-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fa;
  border-radius: 0.5rem;
  overflow: hidden;
}

.cap-preview {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: #667eea;
  clip-path: polygon(0% 100%, 100% 100%, 50% 0%);
}

.sash-preview {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  width: calc(100% - 40px);
  height: 40px;
  background: rgba(231, 76, 60, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
*/

.order-summary {
  background: #f8f9fa;
  padding: 40px;
  border-left: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 40px;
}

.order-summary h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1B4D3E;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-summary h3 .fa-receipt {
  font-size: 1.5rem;
}

.summary-items {
  flex-grow: 1;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.95rem;
  align-items: center;
  transition: all 0.3s ease;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item span:first-child {
  color: #555;
  font-weight: 500;
}

.summary-item span:last-child {
  color: #333;
  font-weight: 600;
  text-align: right;
}

.summary-total {
  background: linear-gradient(135deg, #1B4D3E, #2c775d);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(27, 77, 62, 0.2);
}

.summary-total .summary-item {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-total .summary-item span {
  color: white;
  font-size: 1.2rem;
}

.summary-total .summary-item span:first-child {
  font-weight: 400;
}

.summary-total .summary-item span:last-child {
  font-weight: 700;
  font-size: 1.5rem;
}

.action-buttons {
  background: white;
  padding: 20px 40px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: auto;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #1B4D3E, #2c775d);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #153d31, #246249);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 77, 62, 0.2);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #3d4347);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 117, 125, 0.2);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: rotate(180deg);
}

.progress-bar-container {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 40px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1B4D3E, #2c775d);
  width: 0%;
  transition: width 0.5s ease-out;
  border-radius: 4px;
}

/* Custom Fabric Pattern for display */
.fabric-sample {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 2px solid #e9ecef;
  background-size: 10px 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fabric-crep {
  background-image:
    linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

.fabric-daim {
  background-image: repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.1) 0px,
      transparent 1px,
      transparent 4px,
      rgba(0, 0, 0, 0.1) 5px);
}

/* Disabled state for options */
.option-card.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
  border-color: #f0f0f0 !important;
  box-shadow: none !important;
  background-color: #f8f8f8 !important;
}

.option-card.disabled h3,
.option-card.disabled p {
  color: #999;
}

.option-card.disabled img {
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Message box styles */
.message-box-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-box-overlay.active {
  opacity: 1;
  visibility: visible;
}

.message-box-content {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: translateY(-30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-box-overlay.active .message-box-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.message-box-title {
  font-family: 'Cormorant', serif;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #1B4D3E, #2c775d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.message-box-message {
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.message-box-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.message-box-button {
  background: linear-gradient(135deg, #1B4D3E, #2c775d);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(27, 77, 62, 0.1);
}

.message-box-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(27, 77, 62, 0.2);
}

.message-box-button.cancel {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.message-box-button.cancel:hover {
  box-shadow: 0 6px 15px rgba(108, 117, 125, 0.2);
}

/* Form Reset Animation */
@keyframes formResetWave {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

.form-reset-animation {
  animation: formResetWave 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Media Queries */
@media (max-width: 1024px) {
  .main-content-grid {
    grid-template-columns: 1fr;
  }

  /* Preview styles temporarily disabled
  .preview-panel {
    position: relative;
    height: auto;
    border-left: none;
    border-top: 1px solid #e9ecef;
  }
  */

  .customizer-panel {
    max-height: none;
  }

  .action-buttons {
    padding: 20px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .customizer-panel {
    padding: 20px;
  }

  .option-grid {
    grid-array-columns: 1fr;
  }

  .progress-bar-container {
    margin: 15px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Preview styles temporarily disabled
.preview-panel {
  display: none;
}
*/