*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: #3d2b1f;
  background-color: #f8f0ee;
  background-image: url("/wedding-bg.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  overflow-x: hidden;
}

.header {
  width: 100%;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: clamp(0.7rem, 2.8vw, 0.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b4f42;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: #2f2118;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.65);
}

.subtitle {
  margin: 0;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  line-height: 1.5;
  color: #4a3528;
}

@media (max-height: 740px) {
  .container {
    justify-content: flex-start;
    padding-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    background-attachment: scroll;
  }
}

.upload-card {
  width: min(100%, 26rem);
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 43, 31, 0.12);
  box-shadow: 0 18px 48px rgba(61, 43, 31, 0.14);
}

.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upload-btn {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9788a 0%, #a85d6e 100%);
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(168, 93, 110, 0.35);
}

.upload-btn-secondary {
  background: #fff;
  color: #3d2b1f;
  border: 1.5px solid rgba(61, 43, 31, 0.22);
  box-shadow: 0 4px 14px rgba(61, 43, 31, 0.08);
}

.upload-btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #faf7f5;
  border-color: rgba(61, 43, 31, 0.35);
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(168, 93, 110, 0.42);
}

.upload-btn:active:not(:disabled) {
  transform: translateY(0);
}

.upload-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.upload-icon {
  font-size: 1.4rem;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #6b4f42;
}

.preview-area {
  margin-top: 1.25rem;
}

.preview-area img {
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(61, 43, 31, 0.15);
}

.progress-area {
  margin-top: 1.25rem;
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(61, 43, 31, 0.12);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9788a, #a85d6e);
  transition: width 0.2s ease;
}

#progress-text {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: #4a3528;
}

.status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.status.success {
  color: #2d6a3e;
}

.status.error {
  color: #9b2c2c;
}

.hidden {
  display: none;
}
