/* =========================================
   OZEE CAKES — Contact Page CSS
   assets/css/contact.css
   ========================================= */

.contact-page #header { transition: background .3s, box-shadow .3s; }
.contact-page #header.scrolled { background: white; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.contact-page #header:not(.scrolled) nav a { color: white; }
.contact-page #header:not(.scrolled) .logo-name,
.contact-page #header:not(.scrolled) .logo-sub { color: white; }

/* ---- HERO ---- */
.contact-hero {
  background: linear-gradient(150deg, #0D2461 0%, #0047AB 55%, #1B6CA8 100%);
  padding: 130px 2rem 70px;
  text-align: center; color: white;
  position: relative; overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 300px at 50% 100%, rgba(201,162,39,.15), transparent 70%);
}
.contact-hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.contact-hero .section-tag {
  background: rgba(201,162,39,.2); border: 1px solid rgba(201,162,39,.4);
  color: #C9A227; padding: .3rem 1rem; border-radius: 20px;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  display: inline-block; margin-bottom: 1rem;
}
.contact-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 400;
  color: white; margin-bottom: .75rem; line-height: 1.2;
}
.contact-hero h1 em { color: #C9A227; font-style: italic; }
.contact-hero p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.7; }

/* ---- MAIN LAYOUT ---- */
.contact-main { padding: 4rem 0 5rem; background: #F7F8FC; }
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }

/* ---- LEFT CARDS ---- */
.contact-info-card,
.contact-hours-card,
.contact-social-card {
  background: white; border-radius: 16px;
  border: 1px solid #EEE; padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.contact-info-card h3,
.contact-hours-card h3,
.contact-social-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400; color: #0D1B3E;
  margin-bottom: 1.1rem; padding-bottom: .75rem;
  border-bottom: 1px solid #F0F0F0;
  display: flex; align-items: center; gap: .5rem;
}
.contact-hours-card h3 i { color: #0047AB; font-size: .9rem; }

.contact-items { display: flex; flex-direction: column; gap: .85rem; }
.contact-item-row { display: flex; align-items: flex-start; gap: .85rem; }
.ci-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #EEF3FF; color: #0047AB;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.ci-icon.whatsapp  { background: #DCFCE7; color: #16A34A; }
.ci-icon.email     { background: #FEF3C7; color: #D97706; }
.ci-icon.instagram { background: #FCE7F3; color: #DB2777; }
.contact-item-row strong { display: block; font-size: .8rem; color: #0D1B3E; margin-bottom: .15rem; }
.contact-item-row span,
.contact-item-row a { font-size: .83rem; color: #555; text-decoration: none; }
.contact-item-row a:hover { color: #0047AB; text-decoration: underline; }

.hours-row {
  display: flex; justify-content: space-between;
  font-size: .83rem; padding: .45rem 0;
  border-bottom: 1px solid #F5F5F5;
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row span { color: #666; }
.hours-row strong { color: #0D1B3E; }
.hours-note { font-size: .75rem; color: #888; margin-top: .75rem; line-height: 1.5; }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.social-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; border-radius: 10px;
  font-size: .8rem; font-weight: 600; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.social-btn.instagram { background: linear-gradient(135deg,#F43F8A,#9333EA); color: white; }
.social-btn.whatsapp  { background: #16A34A; color: white; }
.social-btn.facebook  { background: #1D4ED8; color: white; }
.social-btn.tiktok    { background: #0D1B3E; color: white; }

/* ---- RIGHT FORM CARD ---- */
.contact-form-card {
  background: white; border-radius: 16px;
  border: 1px solid #EEE; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.contact-form-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: #0D1B3E;
  margin-bottom: .3rem;
}
.contact-form-card > p { font-size: .85rem; color: #888; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 600;
  color: #0D1B3E; margin-bottom: .4rem;
}
.optional { font-weight: 400; color: #999; font-size: .75rem; }
.input-icon { position: relative; }
.input-icon > i {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: #8B9ABB; font-size: .82rem; pointer-events: none;
}
.input-icon input,
.input-icon select {
  width: 100%; padding: .75rem 1rem .75rem 2.4rem;
  border: 1.5px solid #E0DDD6; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
  color: #0D1B3E; background: #FAFAFA; outline: none;
  transition: border-color .2s, background .2s;
}
.input-icon input:focus,
.input-icon select:focus { border-color: #0047AB; background: white; }
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid #E0DDD6; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
  color: #0D1B3E; background: #FAFAFA; outline: none;
  resize: vertical; min-height: 120px;
  transition: border-color .2s, background .2s;
}
.form-group textarea:focus { border-color: #0047AB; background: white; }
.char-count { text-align: right; font-size: .72rem; color: #888; margin-top: .3rem; }

.form-alert {
  padding: .75rem 1rem; border-radius: 10px;
  font-size: .85rem; margin-bottom: 1rem;
  border: 1px solid transparent;
  display: flex; align-items: center; gap: .5rem;
}

/* Send button */
.btn-send {
  width: 100%; padding: .9rem;
  background: linear-gradient(135deg, #0047AB, #0D2461);
  color: white; border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: .6rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(0,71,171,.25);
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,71,171,.4); }
.btn-send:disabled { opacity: .6; transform: none; cursor: not-allowed; }
.btn-send .btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: white;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-send.loading span,
.btn-send.loading i  { display: none; }
.btn-send.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SUCCESS STATE ---- */
.contact-success {
  background: white; border-radius: 16px;
  border: 1px solid #EEE; padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #D1FAE5; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.success-icon i { font-size: 1.8rem; color: #065F46; }
.contact-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 400; color: #0D1B3E; margin-bottom: .5rem;
}
.contact-success p { color: #666; font-size: .9rem; line-height: 1.7; margin-bottom: 1.75rem; }
.success-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* WhatsApp button in footer */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.2rem; border-radius: 50px;
  background: #16A34A; color: white;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  margin-top: .75rem; transition: background .2s;
}
.btn-whatsapp:hover { background: #15803D; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-hero { padding: 110px 1.5rem 60px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr 1fr; }
  .contact-form-card { padding: 1.5rem; }
}
