/* === DearRocky Base Styles === */
/* Global variables */
:root {
  --font-main: 'Inter', 'Source Sans 3', sans-serif;
  --color-bg: #f9fafb;
  --color-primary: #1845ad;
  --color-primary-hover: #3b67d1;
  --color-text: #111;
  --color-muted: #666;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Reset & base typography */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

main.content {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Header and footer */
.site-header, .site-footer {
  text-align: center;
  margin-bottom: 2rem;
}

.site-header a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

.site-footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Headings and text */
h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

p.lead {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* === Landing Page Hero === */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  max-width: 420px;
}

.hero img {
  flex: 1;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  margin-right: 1rem;
}

/* Better scaling on large screens */
@media (min-width: 1200px) {
  .hero {
    justify-content: space-between;
    gap: 6rem;
  }
  .hero img {
    max-width: 400px;
  }
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero img {
    margin-right: 0;
    max-width: 80%;
  }
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-main);
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button,
input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
  font-weight: 500;
}

button:hover,
input[type="submit"]:hover {
  background: var(--color-primary-hover);
}

/* Upload Box */
.upload-box {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.upload-box.dragover {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(24, 69, 173, 0.2);
}

.upload-box p {
  margin: 0;
  color: var(--color-muted);
}

.click-text {
  color: var(--color-primary);
  font-weight: 500;
}

#preview {
  display: block;
  margin: 1rem auto 0;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

/* Confirmation Page */
.confirmation-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 3rem auto;
  text-align: center;
}

.confirmation-card img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 600px) {
  main.content {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }
}
