body {
  font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f7b6d2 0%, #e573a7 100%);
  min-height: 100vh;
  transition: background 0.5s;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d72660, #e573a7, #f7b6d2);
}

h1 {
  text-align: center;
  color: #d72660;
  margin-bottom: 32px;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(215, 38, 96, 0.1);
}

.form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-bottom: 24px;
}

.form-group {
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #d72660;
  font-weight: 600;
  font-size: 1.05rem;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e573a7;
  border-radius: 16px;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 0.2rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
  outline: none;
  border-color: #d72660;
  box-shadow: 0 0 0 3px rgba(215, 38, 96, 0.1);
  transform: translateY(-1px);
}

.jacket-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.jacket-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 260px;
  min-width: 220px;
  height: 500px;
  background: none;
}

.jacket-images-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 32px;
}

.jacket-front, .jacket-back {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jacket-label {
  margin-top: 8px;
  color: #d72660;
  font-weight: bold;
  font-size: 1.1rem;
}

.jacket-front img, .jacket-back img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 2px 8px #e573a7aa;
}

/* Modern Color Swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.color-swatch {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 2px solid #e573a7;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  flex: 0 1 auto;
}

.color-swatch:hover {
  border-color: #d72660;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 38, 96, 0.15);
}

.color-swatch input[type="radio"] {
  margin-left: 0.5rem;
  accent-color: #d72660;
  transform: scale(1.2);
  flex-shrink: 0;
}

.color-swatch::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: 0.8rem;
  border: 3px solid #e573a7;
  box-sizing: border-box;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.color-swatch.white::before { 
  background: #fff; 
  border: 3px solid #ddd;
}
.color-swatch.navy::before { background: #1a237e; }
.color-swatch.black::before { background: #222; }
.color-swatch.pink::before { background: #f7b6d2; }
.color-swatch.olive::before { background: #b5b35c; }
.color-swatch.maroon::before { background: #800000; }
.color-swatch.vblack::before { background: #232323; }
.color-swatch.grey::before { background: #888; }
.color-swatch.lgrey::before { background: #e0e0e0; }

.color-swatch.selected, 
.color-swatch input[type="radio"]:checked + label,
.color-swatch input[type="radio"]:checked {
  border-color: #d72660;
  background: linear-gradient(135deg, #f7b6d2, #fff0f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 38, 96, 0.2);
}

.color-swatch.selected::before,
.color-swatch input[type="radio"]:checked + label::before,
.color-swatch input[type="radio"]:checked::before {
  border-color: #d72660;
  transform: scale(1.1);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  color: #d72660;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.jacket-front-preview,
.jacket-back-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.jacket-front-preview img,
.jacket-back-preview img {
  max-width: 180px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px #e573a7aa;
  transition: all 0.3s ease;
}

.jacket-front-preview img:hover,
.jacket-back-preview img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 38, 96, 0.2);
}

/* Modern Separator */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  gap: 20px;
}

.separator-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e573a7, transparent);
  border-radius: 1px;
}

.separator-icon {
  font-size: 1.5rem;
  color: #d72660;
  background: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(215, 38, 96, 0.15);
  border: 2px solid #e573a7;
}

/* Sleeve Rubber Preview */
.sleeve-rubber-preview {
  margin-top: 0.8rem;
  background: #fff0f6;
  border: 3px solid #d72660;
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 160px;
  transition: all 0.3s ease;
  /* Ensure visibility when shown */
  visibility: visible;
  opacity: 1;
  /* Force visibility */
  position: relative;
  z-index: 10;
  /* Debug border */
  box-shadow: 0 0 10px rgba(215, 38, 96, 0.5);
}

.sleeve-rubber-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 38, 96, 0.15);
}

.sleeve-rubber-preview img {
  height: 70px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  /* Ensure image is visible */
  border: 1px solid #d72660;
}

.sleeve-rubber-preview div {
  color: #d72660;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
}

/* Upload Sections */
.jacket-design-upload-section {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid #e573a7;
  box-shadow: 0 4px 12px rgba(215, 38, 96, 0.1);
  transition: all 0.3s ease;
}

.jacket-design-upload-section:hover {
  box-shadow: 0 6px 16px rgba(215, 38, 96, 0.15);
}

.jacket-upload-columns {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 18px;
}

.jacket-upload-col {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jacket-upload-col .image-upload {
  width: 100%;
  max-width: 280px; /* Increased from 220px */
  background: #fff0f6;
  border: 2px solid #e573a7;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(215, 38, 96, 0.1);
  padding: 20px; /* Increased from 16px */
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  min-height: 140px; /* Increased from 120px */
}

.jacket-upload-col .image-upload:hover {
  border-color: #d72660;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(215, 38, 96, 0.15);
}

/* New upload header structure */
.upload-header {
  width: 100%;
  text-align: center;
  margin-bottom: 16px; /* Increased from 12px */
}

.upload-header label {
  display: block;
  color: #d72660;
  font-weight: 600;
  font-size: 1.1rem; /* Increased from 1rem */
  margin-bottom: 10px; /* Increased from 8px */
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Increased from 8px */
  margin-bottom: 10px; /* Increased from 8px */
}

.checkbox-container input[type="checkbox"] {
  accent-color: #d72660;
  transform: scale(1.3); /* Increased from 1.2 */
  margin: 0;
}

.checkbox-container span {
  color: #555;
  font-size: 1rem; /* Increased from 0.9rem */
  font-weight: 500;
}

.jacket-upload-col .upload-fields {
  width: 100%;
  max-width: 240px; /* Increased from 180px */
  margin: 0 auto;
  padding: 0;
  background: none;
  border: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
}

.jacket-upload-col .upload-fields.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px; /* Set a maximum height */
  visibility: visible;
  margin-top: 12px; /* Increased from 8px */
}

.jacket-upload-col input[type="file"] {
  width: 85%; /* Reduced from 100% */
  font-size: 0.95em;
  margin-bottom: 10px; /* Increased from 8px */
  background: #fff;
  border: 2px dashed #e573a7;
  border-radius: 12px;
  padding: 10px; /* Increased from 8px */
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.jacket-upload-col input[type="file"]:hover {
  border-color: #d72660;
  background: #f7b6d2;
}

.jacket-upload-col input[type="text"] {
  width: 100%;
  font-size: 0.97em;
  border-radius: 12px;
  padding: 10px 12px; /* Increased from 8px 12px */
  background: #fff;
  border: 2px solid #e573a7;
  transition: all 0.3s ease;
}

.jacket-upload-col input[type="text"]:focus {
  border-color: #d72660;
  box-shadow: 0 0 0 3px rgba(215, 38, 96, 0.1);
}

button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #d72660, #e573a7);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(215, 38, 96, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.color-swatch.other {
  background: linear-gradient(45deg, #ddd 25%, transparent 25%), 
              linear-gradient(-45deg, #ddd 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #ddd 75%), 
              linear-gradient(-45deg, transparent 75%, #ddd 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  color: #333;
  border: 2px solid #999;
}

.custom-color-field input {
  font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

#price {
  font-weight: bold;
  color: #d72660;
  font-size: 1.2rem;
}

.autofill-field {
  background: #e6f7ff;
  border: 2px solid #1890ff;
  color: #222;
  font-weight: bold;
}

.autofill-note {
  display: block;
  color: #1890ff;
  font-size: 0.95em;
  margin-top: 2px;
  margin-bottom: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .color-swatches {
    gap: 0.8rem;
  }
  
  .color-swatch {
    margin-bottom: 0.4rem;
    padding: 0.9rem 1rem;
    min-width: 120px;
  }
  
  .color-swatch::before {
    width: 28px;
    height: 28px;
  }
  
  .jacket-upload-columns {
    flex-direction: column;
    gap: 18px;
  }
  
  .jacket-upload-col {
    max-width: 100%;
    min-width: 0;
  }
  
  .jacket-upload-col .image-upload {
    max-width: 100%;
    min-height: 120px; /* Slightly smaller on mobile */
  }
  
  .jacket-upload-col .upload-fields {
    max-width: 100%;
  }
  
  .section-separator {
    margin: 30px 0;
  }
  
  .separator-icon {
    font-size: 1.2rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 5px;
    padding: 20px 16px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .color-swatches {
    gap: 0.6rem;
  }
  
  .color-swatch {
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    min-width: 100px;
  }
  
  .color-swatch::before {
    width: 24px;
    height: 24px;
  }
  
  input[type="text"],
  input[type="tel"],
  select {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }
  
  .jacket-upload-col .image-upload {
    padding: 16px; /* Smaller padding on mobile */
    min-height: 110px;
  }
  
  .upload-header label {
    font-size: 1rem;
  }
  
  .checkbox-container span {
    font-size: 0.9rem;
  }
  
  button[type="submit"] {
    font-size: 1rem;
    padding: 0.8rem 0;
  }
  
  .section-separator {
    margin: 20px 0;
  }
  
  .separator-icon {
    font-size: 1rem;
    padding: 4px 8px;
  }
}

/* Phone Verification Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  margin: 10% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d72660, #e573a7, #f7b6d2);
}

.modal-header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
  color: #d72660;
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.modal-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.modal-body {
  padding: 30px;
}

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

.modal-body .form-group:last-of-type {
  margin-bottom: 30px;
}

.modal-body label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.modal-body select,
.modal-body input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.modal-body select:focus,
.modal-body input[type="text"]:focus {
  outline: none;
  border-color: #d72660;
  box-shadow: 0 0 0 3px rgba(215, 38, 96, 0.1);
}

.modal-actions {
  text-align: center;
  margin-top: 30px;
}

.check-btn {
  background: linear-gradient(135deg, #d72660, #e573a7);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(215, 38, 96, 0.3);
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(215, 38, 96, 0.4);
}

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

.check-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.verification-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.verification-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.verification-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.verification-message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.modal-body .error {
  color: #d72660;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 5% auto;
    width: 95%;
  }
  
  .modal-header {
    padding: 20px 20px 15px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .check-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 2% auto;
    width: 98%;
  }
  
  .modal-header {
    padding: 15px 15px 10px;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .modal-body {
    padding: 15px;
  }
} 
