/* Upload Item - Multi-Step Wizard Styles */

.upload-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 46, 69, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-loading-overlay[hidden] {
  display: none;
}

.upload-loading-overlay__card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.upload-loading-overlay__spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(206, 55, 88, 0.2);
  border-top-color: var(--color-pink);
  border-radius: 50%;
  animation: upload-spin 0.8s linear infinite;
  margin: 0 auto 24px;
}

@keyframes upload-spin {
  to { transform: rotate(360deg); }
}

.upload-loading-overlay__title {
  font-family: 'Playfair', serif;
  font-size: 20px;
  color: var(--color-blue);
  margin-bottom: 8px !important;
}

.upload-loading-overlay__subtitle {
  font-size: 14px;
  color: #666;
}

html * {
  box-sizing: border-box;
}

p {
  margin: 0;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Container & Header */
.upload-item {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.upload-header {
  text-align: center;
  margin-bottom: 40px;
}

.upload-item h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.upload-subtitle {
  color: var(--color-blue);
  opacity: 0.7;
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.upload-item__bespoke-link {
  font-size: 0.9rem;
  color: var(--color-blue);
  text-decoration: underline;
}

.upload-item__bespoke-link:hover {
  opacity: 0.85;
}

/* Progress Steps */
.progress-wrapper {
  margin-bottom: 50px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--color-blue);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-blue);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: var(--color-white);
  transform: scale(1.1);
}

.progress-step.active .step-label {
  opacity: 1;
  color: var(--color-pink);
}

.progress-step.completed .step-number {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.progress-step.completed .step-label {
  opacity: 1;
}

.progress-line {
  width: 60px;
  height: 2px;
  background: var(--color-blue);
  opacity: 0.2;
  margin: 0 8px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .progress-line {
    width: 30px;
  }
  
  .step-label {
    font-size: 10px;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* Form Steps */
.upload-form {
  position: relative;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-blue);
}

.section-description {
  color: var(--color-blue);
  opacity: 0.7;
  font-size: 0.95rem;
  max-width: 450px;
  margin: 0 auto;
}

/* Step Content */
.step-content {
  padding: 20px 0;
}

/* Upload Zone */
.upload-zone {
  display: block;
  border: 2px dashed var(--color-pink);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: rgba(206, 55, 88, 0.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-pink);
  background: rgba(206, 55, 88, 0.08);
}

.upload-zone:active {
  background: rgba(206, 55, 88, 0.12);
}

.upload-zone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.upload-zone__icon {
  color: var(--color-pink);
  margin-bottom: 4px;
}

.upload-zone__text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-blue);
}

.upload-zone__hint {
  font-size: 0.8rem;
  color: var(--color-blue);
  opacity: 0.5;
}

/* Processing indicator */
.upload-processing {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  color: var(--color-blue);
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 12px;
}

.upload-processing__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(206, 55, 88, 0.25);
  border-top-color: var(--color-pink);
  border-radius: 50%;
  animation: upload-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Image Preview Grid */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 500px) {
  .image-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.image-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-blue);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview.is-main {
  border: 3px solid var(--color-pink);
}

.main-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--color-pink);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
}

.remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 0;
}

.image-preview:hover .remove-image {
  opacity: 1;
}

/* Always show remove button on touch devices */
@media (hover: none) {
  .remove-image {
    opacity: 1;
  }
}

.remove-image:hover,
.remove-image:active {
  background: var(--color-pink);
  transform: scale(1.1);
}

/* Form Groups */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-blue);
}

.required-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(206, 55, 88, 0.15);
  color: var(--color-pink);
}

.optional-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(23, 46, 69, 0.1);
  color: var(--color-blue);
  opacity: 0.7;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-blue);
  opacity: 0.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Input Styling */
.upload-item input[type="text"],
.upload-item input[type="number"],
.upload-item textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-blue);
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-blue);
  transition: border-color 0.3s ease;
}

.upload-item input:focus,
.upload-item textarea:focus {
  outline: none;
  border-color: var(--color-pink);
}

.upload-item textarea {
  border: 2px solid var(--color-blue);
  border-radius: 12px;
  padding: 12px;
  min-height: 100px;
  resize: vertical;
}

.upload-item textarea:focus {
  border-color: var(--color-pink);
}

/* Selectize Overrides */
.upload-item .selectize-input,
.upload-item .selectize-control.single .selectize-input,
.upload-item .selectize-control.single .selectize-input.input-active,
.selectize-input {
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 2px solid var(--color-blue);
  border-radius: 0;
  padding-left: 0;
  transition: border-color 0.3s ease;
}

.upload-item .selectize-input.focus {
  border-color: var(--color-pink);
  box-shadow: none;
}

.upload-item .selectize-input input,
.upload-item .selectize-input input::placeholder {
  font-family: 'Avenir Next';
  font-size: 16px;
  color: var(--color-blue);
  line-height: 16px;
}

.upload-item .selectize-input.has-items > input {
  display: none !important;
}

.upload-item .selectize-control .selectize-input [data-value] {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--color-blue);
  text-shadow: none !important;
  box-shadow: none !important;
  border-color: var(--color-blue);
  font-family: 'Avenir Next';
  font-size: 16px;
  line-height: 16px;
}

.upload-item .selectize-control.multi .selectize-input > div {
  line-height: 14px;
  font-size: 13px;
}

.upload-item .selectize-control.plugin-remove_button .item .remove {
  border-left: 0;
}

.upload-item .selectize-control.multi .selectize-input.has-items {
  padding-left: 0;
}

.upload-item .selectize-dropdown,
.upload-item .selectize-dropdown.single {
  background-color: var(--color-white);
  box-shadow: 0 10px 40px rgba(23, 46, 69, 0.15) !important;
  border: none;
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
}

.upload-item .selectize-dropdown .option {
  padding: 12px 16px;
}

.upload-item .selectize-dropdown .active:not(.selected),
.upload-item .selectize-dropdown .selected {
  background-color: var(--color-pink);
  color: var(--color-white);
}

.upload-item .selectize-control.single .selectize-input:after {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 39 52'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.88741 0.562754C3.87041 1.06975 1.50341 2.27675 0.627409 3.24475C-0.859591 4.88875 -0.305592 5.52475 9.04441 12.9148C14.5484 17.2658 19.0534 21.1038 19.0534 21.4428C19.0544 21.7828 17.2324 23.2658 15.0064 24.7388C9.12641 28.6298 3.13941 34.2608 1.48941 37.4508C-0.377591 41.0608 -0.344591 47.3108 1.55541 50.0238C3.04641 52.1528 3.14741 52.1138 17.8054 43.7388C35.7174 33.5058 38.0544 31.2478 38.0544 24.1778C38.0544 18.0658 35.8824 14.1048 29.4034 8.40176C21.5224 1.46476 13.2554 -1.29125 5.88741 0.562754Z' fill='%23172e45' /%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px 13px;
  height: 13px;
  width: 13px;
  border: none;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.upload-item .selectize-control.single .selectize-input.dropdown-active:after {
  transform: rotate(270deg);
}

/* Pricing Cards */
.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-card {
  border: 2px solid var(--color-blue);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pricing-card.active {
  border-color: var(--color-pink);
  box-shadow: 0 8px 30px rgba(206, 55, 88, 0.15);
}

.pricing-checkbox {
  display: none;
}

.pricing-card__header {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pricing-card__header:hover {
  background: rgba(206, 55, 88, 0.05);
}

.pricing-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(206, 55, 88, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-pink);
  flex-shrink: 0;
}

.pricing-card__info {
  flex: 1;
  margin-left: 16px;
}

.pricing-card__title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-blue);
  margin-bottom: 2px;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--color-blue);
  opacity: 0.6;
}

.pricing-card__check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.pricing-card__check svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.pricing-card.active .pricing-card__check {
  background: var(--color-pink);
  border-color: var(--color-pink);
  opacity: 1;
}

.pricing-card.active .pricing-card__check svg {
  opacity: 1;
  transform: scale(1);
  color: white;
}

.pricing-card__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(206, 55, 88, 0.03);
}

.pricing-card.active .pricing-card__content {
  max-height: 300px;
  padding: 20px;
  border-top: 1px solid rgba(206, 55, 88, 0.2);
}

.pricing-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .pricing-fields {
    grid-template-columns: 1fr;
  }
}

.suggested-rate {
  color: var(--color-pink);
  font-weight: 500;
}

/* Delivery Cards */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-card {
  display: block;
  cursor: pointer;
}

.delivery-checkbox {
  display: none;
}

.delivery-card__content {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--color-blue);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.delivery-card__content:hover {
  background: rgba(206, 55, 88, 0.05);
}

.delivery-checkbox:checked ~ .delivery-card__content {
  border-color: var(--color-pink);
  background: rgba(206, 55, 88, 0.05);
}

.delivery-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(23, 46, 69, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.delivery-checkbox:checked ~ .delivery-card__content .delivery-card__icon {
  background: rgba(206, 55, 88, 0.15);
  color: var(--color-pink);
}

.delivery-card__info {
  flex: 1;
  margin-left: 16px;
}

.delivery-card__title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-blue);
  margin-bottom: 2px;
}

.delivery-card__desc {
  font-size: 0.85rem;
  color: var(--color-blue);
  opacity: 0.6;
}

.delivery-card__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.delivery-card__check svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.delivery-checkbox:checked ~ .delivery-card__content .delivery-card__check {
  background: var(--color-pink);
  border-color: var(--color-pink);
  opacity: 1;
}

.delivery-checkbox:checked ~ .delivery-card__content .delivery-card__check svg {
  opacity: 1;
  transform: scale(1);
  color: white;
}

.delivery-card__expanded {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 20px;
  background: rgba(206, 55, 88, 0.03);
  border: 2px solid transparent;
  border-top: none;
  border-radius: 0 0 16px 16px;
  margin-top: 0;
}

.delivery-card.expanded .delivery-card__expanded {
  margin-top: -16px;
  max-height: 200px;
  padding: 20px;
  border-color: var(--color-pink);
}

.delivery-card.expanded .delivery-card__content {
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

/* Validation Messages */
.validation-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(206, 55, 88, 0.1);
  border-radius: 10px;
  color: var(--color-pink);
  font-size: 0.9rem;
  margin-top: 20px;
}

.validation-message svg {
  flex-shrink: 0;
}

/* Server-side error banner (shown at top of form when form_invalid fires) */
.upload-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(206, 55, 88, 0.08);
  border: 1px solid rgba(206, 55, 88, 0.3);
  border-radius: 10px;
  color: var(--color-pink);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.upload-error-banner p {
  margin: 0;
}

.upload-error-banner p + p {
  margin-top: 4px;
}

/* Inline field error */
.form-field-error {
  display: block;
  font-size: 0.82rem;
  color: var(--color-pink);
  margin-top: 4px;
}

/* Inline image error */
.upload-error-inline {
  padding: 10px 14px;
  background: rgba(206, 55, 88, 0.08);
  border: 1px solid rgba(206, 55, 88, 0.25);
  border-radius: 8px;
  color: var(--color-pink);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(23, 46, 69, 0.1);
}

/* Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: 2px solid var(--color-pink);
  background: var(--color-pink);
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.button:hover {
  background: var(--color-white);
  color: var(--color-pink);
}

.button:hover svg {
  stroke: var(--color-pink);
}

.button svg {
  stroke: var(--color-white);
  transition: stroke 0.3s ease;
}

.button--outline {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.button--outline svg {
  stroke: var(--color-blue);
}

.button--outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.button--outline:hover svg {
  stroke: var(--color-white);
}

.button--success {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.button--success:hover {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: var(--color-white);
}

.button--success:hover svg {
  stroke: var(--color-white);
}

.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Edit Item Page */
.edit-item {
  max-width: 800px;
}

/* Mobile Responsive */
@media only screen and (max-width: 600px) {
  .upload-item {
    padding: 0 16px;
  }
  
  .upload-item h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .upload-zone {
    padding: 30px 16px;
  }
  
  .pricing-card__header {
    padding: 16px;
  }
  
  .pricing-card__icon {
    width: 44px;
    height: 44px;
  }
  
  .pricing-card__title {
    font-size: 1rem;
  }
  
  .delivery-card__content {
    padding: 16px;
  }
  
  .delivery-card__icon {
    width: 48px;
    height: 48px;
  }
  
  .step-navigation {
    flex-direction: column;
    gap: 16px;
  }
  
  .step-navigation .button {
    width: 100%;
  }
  
  .step-navigation > div:empty {
    display: none;
  }
}

/* Animation for card hover */
@media (hover: hover) {
  .pricing-card:hover:not(.active) {
    border-color: rgba(206, 55, 88, 0.5);
  }
  
  .delivery-card:hover .delivery-card__content:not(:checked) {
    border-color: rgba(206, 55, 88, 0.5);
  }
}

/* Focus styles for accessibility */
.button:focus-visible,
.pricing-card__header:focus-visible,
.delivery-card__content:focus-visible {
  outline: 3px solid var(--color-pink);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ===========================================
   Edit Item Page Specific Styles
   =========================================== */

.edit-item {
  max-width: 800px;
}

/* Edit Actions Bar */
.edit-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--color-blue);
  border-radius: 50px;
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-link:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.action-link:hover svg {
  stroke: var(--color-white);
}

.action-link--success {
  border-color: #28a745;
  color: #28a745;
}

.action-link--success:hover {
  background: #28a745;
  color: var(--color-white);
}

.action-link--warning {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.action-link--warning:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

/* Form Sections */
.form-section {
  background: var(--color-white);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 2px 20px rgba(23, 46, 69, 0.06);
}

.form-section--submit {
  background: transparent;
  box-shadow: none;
  padding: 20px 0;
  text-align: center;
}

/* Large Button */
.button--large {
  padding: 16px 40px;
  font-size: 15px;
}

/* Mobile adjustments for edit page */
@media (max-width: 640px) {
  .edit-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-link {
    justify-content: center;
  }
  
  .form-section {
    padding: 20px;
    border-radius: 16px;
  }
}

/* ===========================================
   Edit Images Page Styles
   =========================================== */

/* Images Grid */
.images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .images-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Image Card */
.image-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  border: 2px solid rgba(23, 46, 69, 0.1);
  transition: all 0.3s ease;
}

.image-card:hover {
  border-color: rgba(23, 46, 69, 0.2);
  box-shadow: 0 8px 30px rgba(23, 46, 69, 0.1);
}

.image-card.is-default {
  border-color: var(--color-pink);
  box-shadow: 0 4px 20px rgba(206, 55, 88, 0.15);
}

.image-card__preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.image-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-card:hover .image-card__preview img {
  transform: scale(1.05);
}

.image-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-pink);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  gap: 8px;
  background: rgba(23, 46, 69, 0.02);
}

.image-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-pink);
  font-size: 13px;
  font-weight: 600;
}

.image-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.image-card__action--default {
  background: rgba(23, 46, 69, 0.08);
  color: var(--color-blue);
}

.image-card__action--default:hover {
  background: var(--color-pink);
  color: var(--color-white);
}

.image-card__action--default:hover svg {
  stroke: var(--color-white);
}

.image-card__action--delete {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.image-card__action--delete:hover {
  background: #dc3545;
  color: var(--color-white);
}

.image-card__action--delete:hover svg {
  stroke: var(--color-white);
}

/* Empty Images State */
.empty-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: rgba(23, 46, 69, 0.03);
  border-radius: 16px;
  border: 2px dashed rgba(23, 46, 69, 0.15);
}

.empty-images__icon {
  color: var(--color-blue);
  opacity: 0.4;
  margin-bottom: 16px;
}

.empty-images__text {
  color: var(--color-blue);
  opacity: 0.6;
  font-size: 0.95rem;
  margin: 0;
}

/* New Image Preview */
.new-image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.new-image-preview__image {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(23, 46, 69, 0.15);
}

.new-image-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-image-preview__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.new-image-preview__remove:hover {
  background: #dc3545;
  transform: scale(1.1);
}

/* Tips Section */
.tips-section {
  background: rgba(206, 55, 88, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}

.tips-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-blue);
  margin: 0 0 12px;
}

.tips-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-blue);
  opacity: 0.8;
}

.tips-list li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

/* Mobile adjustments for images page */
@media (max-width: 500px) {
  .images-grid {
    grid-template-columns: 1fr;
  }
  
  .image-card__actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .image-card__action {
    width: 100%;
    justify-content: center;
  }
  
  .new-image-preview__image {
    width: 160px;
    height: 160px;
  }
}
