/**
 * SIXPRINT GICLEE PRINTING SPECIFIC STYLES
 *
 * Contains ONLY Giclee-specific calculator and product styles
 * Site-wide styles (header, footer, etc.) are in site-common.css
 */

/* ==================== CALCULATOR SECTION ==================== */
.calculator-section {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Removed position: sticky to prevent page jumping when content height changes */
}

.calculator-section h2 {
  color: var(--brand-dark);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
}

.calculator-explanation {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ==================== GICLEE CALCULATOR ==================== */
.giclee-calculator {
  font-family: inherit;
}

.artwork-row {
  background: var(--brand-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.artwork-row:hover {
  border-color: var(--brand-pink);
}

.artwork-row > label {
  font-weight: 600;
  color: var(--brand-pink);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: block;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--brand-dark);
  font-size: 1rem;
}

.radio-group input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-pink);
}

.size-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.size-button {
  background: var(--brand-dark);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
}

.size-button:hover {
  background: #555;
  transform: translateY(-1px);
}

.size-button.active {
  background: var(--brand-pink);
  box-shadow: 0 2px 8px rgba(255, 38, 158, 0.3);
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-field h4 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==================== DIMENSION INPUTS ==================== */
.dimension-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--brand-white);
}

.dimension-input:focus {
  border-color: var(--brand-pink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 38, 158, 0.1);
}

.dimension-input:hover {
  border-color: #ddd;
}

.quantity-input, .paper-type {
  padding: 10px 12px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--brand-white);
}

.quantity-input:focus, .paper-type:focus {
  border-color: var(--brand-pink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 38, 158, 0.1);
}

.quantity-input:hover, .paper-type:hover {
  border-color: #ddd;
}

/* ==================== EXTRAS OPTIONS (BACKING BOARD & CLEAR BAG) ==================== */
.extras-section h4 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* 3-column grid layout with label + 2 buttons (No/Yes) */
.sides-options-container {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.sides-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sides-field-label .main-label {
  font-weight: 500;
  color: var(--brand-dark);
  font-size: 1rem;
}

/* Extras buttons styling - exact copy from product-calculator-common.css */
.sides-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border-light);
  background: var(--brand-white);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: inherit;
  min-width: 160px;
  min-height: 64px;
  position: relative;
}

.sides-btn:hover {
  border-color: var(--brand-pink);
  background: #fff5f7;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.sides-btn.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.sides-btn.active:hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
}

.sides-btn-icon {
  height: 60%;
  width: auto;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.sides-btn.active .sides-btn-icon {
  filter: brightness(0) invert(1);
}

.sides-btn-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
  white-space: nowrap;
}

.sides-btn-label:empty {
  display: none;
}

.sides-btn.active .sides-btn-label {
  color: white;
}

.delete-artwork {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.delete-artwork:hover {
  background: #cc3333;
  transform: scale(1.1);
}

/* ==================== DELIVERY SECTION ==================== */
.delivery-section {
  background: var(--brand-light);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
}

.delivery-section input,
.delivery-section select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--brand-white);
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.delivery-section input:focus,
.delivery-section select:focus {
  outline: none;
  border-color: var(--brand-pink);
}

.delivery-section select:last-child {
  margin-bottom: 0;
}

.button-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.add-artwork, .calculate-price {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  font-family: inherit;
}

.add-artwork {
  background: var(--brand-dark);
  color: white;
}

.add-artwork:hover {
  background: #555;
  transform: translateY(-2px);
}

.calculate-price {
  background: var(--brand-pink);
  color: white;
}

.calculate-price:hover {
  background: var(--brand-purple);
  transform: translateY(-2px);
}

#result {
  background: var(--brand-light);
  border: 2px solid var(--border-light);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
  will-change: contents;
}

#result:not(:empty) {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

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

#error-message {
  background: #fff5f5;
  color: #c53030;
  border: 2px solid #feb2b2;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1.5rem;
  display: none;
}

#error-message:not(:empty) {
  display: block;
}

/* ==================== PRODUCT GROUP (ORDER SUMMARY) ==================== */
.product-group {
  background: var(--brand-light);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.product-group-header {
  font-weight: 600;
  color: var(--brand-pink);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-discount-line {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

/* Strikethrough pricing */
.price-original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
  margin-right: 0.5rem;
  opacity: 0.7;
}

.discount-badge {
  background: var(--brand-purple);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Savings message */
.savings-message {
  background: linear-gradient(135deg, rgba(255, 38, 158, 0.05), rgba(146, 78, 255, 0.05));
  border-left: 3px solid var(--brand-pink);
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 4px;
  color: var(--brand-purple);
  font-weight: 600;
  font-size: 0.9rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: none;
  font-size: 0.95rem;
}

.price-row.extras {
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.total-row {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--brand-pink);
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand-dark);
}

.summary-qty {
  color: var(--brand-pink);
  font-weight: 700;
}

.artwork-summary {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.price-breakdown {
  display: grid;
  gap: 8px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #f1f3f4;
}

.price-item:last-child {
  border-bottom: none;
}

.original-price {
  color: #999;
  text-decoration: line-through;
  margin-right: 10px;
}

.discounted-price {
  color: var(--brand-pink);
  font-weight: bold;
}

/* ==================== ANIMATED CTA BUTTON ==================== */
.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--brand-white);
  color: var(--brand-dark);
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  background-clip: padding-box;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  padding: 3px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple), var(--brand-pink));
  background-size: 200% 100%;
  border-radius: 9px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  animation: gradientShift 3s ease-in-out infinite;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 38, 158, 0.2);
}

/* ==================== PRODUCT DESCRIPTION ==================== */
.product-description {
  background: var(--brand-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--brand-pink);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== VAT TOGGLE SWITCH ==================== */
.vat-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.vat-toggle-text {
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 500;
}

.vat-toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vat-toggle-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: #ccc;
  border-radius: 28px;
  transition: background-color 0.3s ease;
}

.vat-toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vat-toggle-label input[type="checkbox"]:checked + .vat-toggle-slider {
  background: var(--brand-purple);
}

.vat-toggle-label input[type="checkbox"]:checked + .vat-toggle-slider::before {
  transform: translateX(24px);
}

.vat-toggle-label input[type="checkbox"]:focus + .vat-toggle-slider {
  box-shadow: 0 0 0 3px rgba(146, 78, 255, 0.2);
}

.vat-toggle-label:hover .vat-toggle-slider {
  opacity: 0.9;
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 968px) {
  /* Sticky positioning removed, so no override needed */
}

@media (max-width: 768px) {
  .input-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .size-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .button-container {
    flex-direction: column;
  }

  .add-artwork, .calculate-price {
    width: 100%;
  }

  .sides-options-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .size-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .radio-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .vat-toggle-text {
    font-size: 0.85rem;
  }
}

/* ==================== SAMPLE PACK CTA ==================== */
.sample-pack-cta {
  background: linear-gradient(135deg, rgba(255, 38, 158, 0.05), rgba(146, 78, 255, 0.05));
  border: 2px solid rgba(255, 38, 158, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.sample-pack-cta h3 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.sample-pack-cta p {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
