/* contact1.css – mobile-first version 1 */


/* ---------- Contact Section One (Responsive Flex/Grid rewrite) ----------
   Notes:
   - Minimal, controllable top space with --contact-top-gap
   - Fully responsive grid (2 cols desktop → 1 col mobile)
   - No absolute positioning; form stays within section at all sizes
----------------------------------------------------------------------------- */

:root{
  --bg-contact: #dbd8ce;
  --ink: #2e3136;
  --ink-soft: #62676f;
  --surface: #ffffff;
  --stroke: #cfcac0;
  --accent: #4b515b;
  --radius: 10px;

  /* control the space from the very top of the section */
  --contact-top-gap: 80px;
  --section-inline-pad: 16px;
  --max-form-width: 723px;
  --field-gap-y: 16px;
  --field-gap-x: 24px;
  --field-height: 50px;
  --btn-radius: 10px;
}

/* SECTION: centered horizontally; top gap is adjustable */
.contact-section-one{
  background: var(--bg-contact);
  display: flex;
  justify-content: center;
  /* keep the form near the top but not touching */
  padding-block: var(--contact-top-gap) clamp(24px, 4vw, 48px);
  padding-inline: var(--section-inline-pad);
  position: relative;
  /* no min-height here so the section height hugs the content,
     ensuring "minimal and controllable" top space */
}

/* WRAP: constrain width and center */
.contact-form-wrap{
  width: min(var(--max-form-width), 100%);
  margin-inline: auto;
}

/* FORM: 2-column grid on desktop, 1 column on mobile */
.contact-form{
  display: block;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--field-gap-y) var(--field-gap-x);
}

/* Labels appear above inputs */
.field-label{
  display: block;
  font-family: "Arsenal SC","Ag Body Small", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.2;
}

/* Inputs / selects */
.field-input,
.field-select{
  width: 100%;
  height: var(--field-height);
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: "Arsenal SC","Ag Body", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #111;
}
.field-input:focus,
.field-select:focus{
  border-color: #999;
  outline: none;
}

/* Textarea */
.field-textarea{
  width: 100%;
  min-height: 150px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Arsenal SC","Ag Body", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 16px;
  color: #111;
  background: #fff;
  resize: vertical;
}
textarea::-webkit-resizer{ display: none; } /* belt & suspenders */

/* Native select arrow */
#purpose{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 55%, calc(100% - 14px) 55%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

/* ---------------- Grid placement by field ------------------ */
/* Row 1: First / Last */
#label-first-name, #first_name { grid-column: 1; }
#label-last-name,  #last_name  { grid-column: 2; }

/* Row 2: Email / Purpose */
#label-email, #email       { grid-column: 1; }
#label-purpose, #purpose   { grid-column: 2; }

/* Row 3: Subject spans both columns */
#label-subject, #subject   { grid-column: 1 / -1; }

/* Row 4: Details spans both columns */
#label-details, #details   { grid-column: 1 / -1; }

/* Group label + input + error together */
.field-block {
  display: flex;
  flex-direction: column;
}
/* Subject + details should span both columns */
.field-block--full {
  grid-column: 1 / -1;
}

/* Buttons:
   - Desktop: Reset on left (col 1), Submit on right (col 2)
   - Mobile: stack full-width (handled in media query)
*/
.reset-btn{
  grid-column: 1;
  justify-self: start;
  padding: 12px 16px;
  border: 1px solid #9CA3AF;
  border-radius: var(--btn-radius);
  background: #F3F4F6;
  color: #111;
  font-family: "Ag Body","Roboto",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.reset-btn:hover{ filter: brightness(0.98); }
.reset-btn svg{ width: 16px; height: 16px; fill: currentColor; }

.submit-btn{
  grid-column: 2;
  justify-self: end;
  padding: 10px 20px 10px 16px;
  border: 0;
  border-radius: var(--btn-radius);
  background: #6B7280;
  color: #fff;
  font-family: "Ag Body","Roboto",system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.submit-btn:hover{ filter: brightness(0.85); }
.submit-btn svg{ width: 16px; height: 16px; fill: currentColor; }

/* -------------------- Responsive -------------------- */
@media (max-width: 768px){
  .contact-form{
    grid-template-columns: 1fr;
  }

  /* Every field spans the single column */
  #label-first-name, #first_name,
  #label-last-name,  #last_name,
  #label-email, #email,
  #label-purpose, #purpose,
  #label-subject, #subject,
  #label-details, #details{
    grid-column: 1;
  }

  /* Buttons: stack full-width for easy tapping */
  .reset-btn,
  .submit-btn{
    grid-column: 1;
    width: 100%;
    justify-content: center;
    justify-self: stretch;
  }
}

/* Optional: users preferring less motion (if you later add transitions) */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* --- Fix misalignment for the first two rows --- */
#label-first-name { grid-column: 1; grid-row: 1; }
#first_name       { grid-column: 1; grid-row: 2; }

#label-last-name  { grid-column: 2; grid-row: 1; }
#last_name        { grid-column: 2; grid-row: 2; }

/* Second row (Email / Purpose) */
#label-email   { grid-column: 1; grid-row: 3; }
#email         { grid-column: 1; grid-row: 4; }

#label-purpose { grid-column: 2; grid-row: 3; }
#purpose       { grid-column: 2; grid-row: 4; }

/* --- Mobile: let everything stack naturally --- */
@media (max-width: 768px){
  .contact-form > * { grid-row: auto !important; }
}

.contact-form-group {
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  /*background: #FFFFFF;*/
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /*gap: var(--field-gap-y) var(--field-gap-x);*/
  gap: 1rem 2rem;
}

.contact-form-group legend {
  font-family: "Arsenal SC", "Ag Body", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0 8px;
}

/* buttons align like before (left / right) */
.reset-btn  { grid-column: 1; justify-self: start; }
.submit-btn { grid-column: 2; justify-self: end; }

/* responsive: stack to one column on small screens */
@media (max-width: 768px){
  .contact-form-group { grid-template-columns: 1fr; }
  .reset-btn, .submit-btn {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }
}

.sent-form-group {
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  /*background: var(--surface);*/
  width: min(90%, 800px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sent-form-group legend {
  font-family: "Arsenal SC", "Ag Body", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0 8px;
}

#cf-hero-text {
  font-family: "Arsenal SC", "Ag Body", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}
/* Ensure confirmation hero uses the same top spacing as the contact form */
.contact-form--sent {
  margin-top: 0;    /* align with base .contact-form */
}


/* Inline error text */
.error-message {
  font-family: "Arsenal SC", "Ag Body", "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #e43c3c;
}

/* Red border on invalid fields */
.field-input.error,
.field-textarea.error,
.field-select.error {
  border: 2px solid #e43c3c;
  outline: none;
}

/* Disabled submit button */
.submit-btn[disabled],
.submit-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

#timer {
  font-family: "Arsenal SC","Roboto Mono", monospace;
  font-size: 1.1rem;
  font-weight: 400;
}

/* === Daily Quote Styling (Option 1) === */

.daily-quote {
    margin-top: 1.25rem;
}

.daily-quote-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #465E69; /* your dark slate blue tone */
    margin-bottom: 0.35rem;
}

.daily-quote-box {
    background: rgba(157, 173, 186, 0.12); /* subtle blue-grey tint */
    border-left: 4px solid #465E69;        /* brand accent */
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.daily-quote-text {
    font-style: italic;
    color: #3d494f;   /* soft dark grey for readability */
    line-height: 1.55;
    font-size: 1rem;
}

.daily-quote-author {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: #465E69;   /* brand accent */
    font-weight: 500;
    text-align: right;
}

