/**
 * The Creative Invites — Digital Invite Customization Portal Styles
 * Luxury Responsive Modal & Standalone Customization Form
 */

/* ============================================================
   1. CUSTOMIZER DIALOG OVERLAY & CONTAINER
   ============================================================ */
.digi-customizer-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 680px;
  width: 94%;
  border-radius: 24px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(212, 175, 55, 0.35);
  overflow: hidden;
  z-index: 1000005;
}

.digi-customizer-dialog::backdrop,
.digi-preview-dialog::backdrop {
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
  .digi-customizer-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto auto 0 auto;
    border-radius: 24px 24px 0 0;
    max-height: 94vh;
  }
}

.digi-customizer-card {
  background: linear-gradient(168deg, #181b24 0%, #10121a 50%, #0a0b10 100%);
  color: #f7df96;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 90vh;
  overflow: hidden;
}

/* Header */
.digi-customizer-header {
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.digi-customizer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.digi-customizer-badge {
  background: linear-gradient(135deg, #d4af37, #f7df96);
  color: #10121a;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.digi-customizer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

.digi-customizer-close {
  background: transparent;
  border: none;
  color: #9ea4b4;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.digi-customizer-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Body (Scrollable) */
.digi-customizer-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Banner Indicator */
.digi-customizer-sku-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
}

.digi-sku-tag {
  font-weight: 700;
  color: #f7df96;
}

/* Form Sections */
.digi-form-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.digi-section-legend {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4af37;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 8px;
}

.digi-section-legend .req-star {
  color: #ef4444;
  font-size: 14px;
}

/* Form Grid */
.digi-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.digi-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.digi-form-group.full-width {
  grid-column: 1 / -1;
}

.digi-form-label {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.digi-form-label .req-star {
  color: #ef4444;
}

.digi-form-input,
.digi-form-select,
.digi-form-textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.digi-form-input:focus,
.digi-form-select:focus,
.digi-form-textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

.digi-form-input::placeholder,
.digi-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

/* WhatsApp Phone Input Group */
.digi-wa-input-group {
  display: flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.08);
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  border-radius: 10px;
  padding: 2px 10px;
  transition: all 0.2s ease;
}

.digi-wa-input-group:focus-within {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  background: rgba(37, 211, 102, 0.12);
}

.digi-wa-prefix {
  font-weight: 700;
  font-size: 13px;
  color: #25d366;
  padding-right: 6px;
  user-select: none;
}

.digi-wa-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: 100%;
  padding: 8px 0;
  font-family: inherit;
}

.digi-wa-badge {
  background: #25d366;
  color: #10121a;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}

/* Ceremony Schedule Cards */
.ceremony-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ceremony-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ceremony-card-num {
  font-size: 11px;
  font-weight: 700;
  color: #f7df96;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ceremony-card-remove {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.ceremony-card-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

.add-ceremony-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  color: #f7df96;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-ceremony-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #fff;
}

/* ============================================================
   COUPLE PHOTO UPLOAD (CARICATURE & BASIC INVITE)
   ============================================================ */
.photo-upload-section {
  background: rgba(212, 175, 55, 0.05);
  border: 1.5px dashed rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.photo-upload-alert {
  background: rgba(212, 175, 55, 0.12);
  border-left: 3px solid #d4af37;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 12px;
}

.photo-upload-alert-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.photo-upload-alert-desc {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.45;
}

.photo-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-dropzone:hover,
.photo-dropzone.drag-over {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
}

.photo-dropzone-icon {
  font-size: 28px;
  color: #d4af37;
}

.photo-dropzone-text {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.photo-dropzone-sub {
  font-size: 10.5px;
  color: #9ea4b4;
}

/* Preview Grid */
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.photo-thumb-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.photo-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.photo-thumb-remove:hover {
  background: #ef4444;
}

/* Footer & Actions */
.digi-customizer-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(16, 18, 26, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
}

@media (max-width: 500px) {
  .digi-customizer-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.digi-submit-btn {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  flex-grow: 1;
}

.digi-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #2ee06f 0%, #16a085 100%);
}

.digi-submit-note {
  font-size: 11px;
  color: #9ea4b4;
  line-height: 1.35;
}

/* Success Card */
.digi-success-view {
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.digi-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 6px;
}

.digi-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
}

.digi-success-desc {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 440px;
  line-height: 1.5;
  margin: 0;
}

.digi-success-wa-btn {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.digi-success-wa-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

/* Quick Personalize Button in Digital Invite Catalog Cards */
.digi-card__pers {
  background: rgba(198, 137, 21, 0.12);
  color: #c68915;
  border: 1px solid rgba(198, 137, 21, 0.38);
  border-radius: 999px;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.digi-card__pers:hover {
  background: #c68915;
  color: #fff;
  border-color: #c68915;
  transform: translateY(-1px);
}

