/* Bakes by S, Enquiries page styles (Pink & Black theme) */
/*
  Styles for the contact form. Uses a dark card with rounded corners
  and simple inputs. Colours match the site theme for consistency.
*/

/* Theme variables (shared) */
:root {
  --bg: #0f0f12;
  --surface: #15151a;
  --text: #f7f7f9;
  --muted: #cfcfd6;
  --border: #2a2a30;
  --pink: #ff4da6;
}

/* Base */
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }

.container {
  max-width: 900px;
  margin: 32px auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
/* Form container: centres content and creates a card effect. */

h2 { margin-top: 0; }

label { display: block; margin: 12px 0 6px; }
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f0f12;
  color: var(--text);
}
/* Inputs: full width, rounded corners and dark backgrounds to match the theme. */

textarea { min-height: 180px; }

input[type="submit"] {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--pink);
  color: #1a1a1a;
  border: none;
  cursor: pointer;
}
/* Submit button: high contrast for visibility and a friendly rounded shape. */

.text-content { max-width: 900px; margin: 16px auto; padding: 0 16px; color: var(--muted); }

/* Javascript Calender */
 

/* Theme colors for this calendar only */
:root {
  --calendar-bg: #000000;         /* Black background */
  --calendar-surface: #1a1a1a;    /* Slightly lighter card */
  --calendar-text: #f7f7f9;       /* Main text color */
  --calendar-muted: #cfcfd6;      /* Muted text */
  --calendar-border: #2a2a30;     /* Card borders */
  --calendar-accent: #ff4da6;     /* Pink highlight */
}

/* Calendar card/container */
.card {
  background: var(--calendar-surface);
  color: var(--calendar-text);
  border-radius: 14px;
  padding: 20px;
  max-width: 400px;
  margin: 20px auto;
  border: 1px solid var(--calendar-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Month & year selectors row */
.card .row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.card select {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--calendar-border);
  background: var(--calendar-bg);
  color: var(--calendar-text);
  cursor: pointer;
}

/* Selected date display */
.card .selected {
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--calendar-text);
}

/* Day grid */
.card .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

/* Individual day cells */
.card .day {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--calendar-text);
  background: var(--calendar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--calendar-border);
  transition: background 0.2s, color 0.2s;
}

/* Hover effect */
.card .day:hover {
  background: var(--calendar-accent);
  color: black;
}

/* Today highlight */
.card .today {
  color: var(--calendar-accent);
  font-weight: bold;
  text-decoration: underline;
}

/* Selected day highlight */
.card .selectedDay {
  background: var(--calendar-accent);
  color: black !important;
  font-weight: bold;
}

/* Empty cells for alignment */
.card .empty {
  visibility: hidden;
}

/* Responsive adjustment for small screens */
@media (max-width: 400px) {
  .card {
    padding: 16px;
  }

  .card .day {
    font-size: 12px;
  }

  .card select {
    padding: 6px 10px;
  }
}
/*email validation css*/
/* Email validation styles */
input[type="email"]:invalid {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

input[type="email"]:valid {
  border-color: #44ff88;
  background: rgba(68, 255, 136, 0.1);
}

input[type="email"]:focus:invalid {
  outline: 2px solid #ff4444;
  outline-offset: 2px;
}

input[type="email"]:focus:valid {
  outline: 2px solid #44ff88;
  outline-offset: 2px;
}

/* Optional: Error message styling */
.email-error {
  color: #ff4444;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

input[type="email"]:invalid ~ .email-error {
  display: block;
}