/* Dhaka Dental PC — Contact Page UI
   File: assets/css/contact.css
   Notes:
   - Uses site CSS vars if available; includes fallbacks.
*/

:root{
  --dd-primary: var(--color-primary, #112D43);
  --dd-secondary: var(--color-secondary, #5F93CC);
  --dd-accent: var(--color-accent, #9DBEE3);
  --dd-text: var(--color-text, #0f172a);
  --dd-muted: var(--color-muted, #6a7d98);
  --dd-bg: var(--color-bg, #f4f8fd);
  --dd-white: var(--color-light, #ffffff);

  --dd-radius: 16px;
  --dd-radius-sm: 10px;
  --dd-shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --dd-shadow-soft: 0 6px 18px rgba(15, 23, 42, .08);
  --dd-border: rgba(17, 45, 67, .10);
}

.contact-page{
  padding: clamp(22px, 4vw, 44px) 0;
  background: radial-gradient(1000px 500px at 15% 0%, rgba(95,147,204,.18), transparent 60%),
              radial-gradient(800px 500px at 85% 10%, rgba(157,190,227,.18), transparent 55%),
              var(--dd-bg);
}

.contact-page .container{
  max-width: 1000px;
}

.contact-page h1{
  font-family: var(--font-heading, inherit);
  color: var(--dd-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
}

.contact-page > .container > p:first-of-type{
  color: var(--dd-muted);
  margin: 0 0 18px 0;
  font-size: clamp(14px, 1.6vw, 16px);
}

.contact-page a{
  color: inherit;
  text-decoration: none;
}

.contact-page a:hover{
  text-decoration: underline;
}

.contact-page ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Layout */
.dd-contact-grid{
  display: grid;
  gap: 14px;
  margin-top: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px){
  .dd-contact-grid{
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Card */
.dd-card{
  background: var(--dd-white);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow-soft);
  padding: 16px;
}

@media (min-width: 760px){
  .dd-card{
    padding: 18px;
  }
}

.dd-card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dd-card-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--dd-primary);
  font-size: 16px;
  margin: 0;
}

.dd-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(95,147,204,.14);
  color: var(--dd-primary);
  border: 1px solid rgba(95,147,204,.25);
  white-space: nowrap;
}

/* Contact item */
.dd-contact-item{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--dd-radius-sm);
  border: 1px solid rgba(17, 45, 67, .08);
  background: linear-gradient(180deg, rgba(244,248,253,.9), rgba(255,255,255,.9));
}

.dd-contact-item + .dd-contact-item{
  margin-top: 10px;
}

.dd-contact-left{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.dd-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(95,147,204,.15);
  border: 1px solid rgba(95,147,204,.25);
  flex: 0 0 auto;
  color: var(--dd-primary);
}

.dd-contact-meta{
  min-width: 0;
}

.dd-contact-label{
  display: block;
  font-weight: 700;
  color: var(--dd-primary);
  font-size: 14px;
  margin-bottom: 2px;
}

.dd-contact-value{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dd-text);
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}

.dd-subtext{
  color: var(--dd-muted);
  font-size: 12px;
  margin-top: 6px;
}

/* Buttons */
.dd-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.dd-btn{
  appearance: none;
  border: 1px solid hsla(205, 66%, 29%, 0.18);
  background: #fff;
  color: var(--dd-primary);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.dd-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15,23,42,.10);
  text-decoration: none;
}

.dd-btn:active{
  transform: translateY(0);
}

.dd-btn-primary{
  background: #F9FEFF;
  border-color: rgba(95,147,204,.55);
  color: var(--dd-primary);
}


.dd-btn-primary:hover{
  filter: brightness(1.03);
}

.dd-btn-ghost{
  background: rgba(95,147,204,.10);
  border-color: rgba(95,147,204,.25);
}

/* Enhancements JS injects */
.dd-copy-btn{
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  border-radius: 10px;
}

.dd-copy-btn[data-copied="true"]{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.35);
  color: #065f46;
}

/* Bottom sticky quick actions (mobile) */
.dd-sticky-actions{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244,248,253,.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(17,45,67,.10);
  display: none;
}

.dd-sticky-actions .dd-sticky-wrap{
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dd-sticky-actions a{
  text-decoration: none;
}

.dd-sticky-btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(17,45,67,.12);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15,23,42,.06);
  font-weight: 800;
  color: var(--dd-primary);
  font-size: 11px;
  text-align: center;
}

.dd-sticky-btn .dd-mini{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(95,147,204,.15);
  border: 1px solid rgba(95,147,204,.25);
}

@media (max-width: 760px){
  .dd-sticky-actions{
    display: block;
  }
  /* Avoid footer overlap */
  body{
    padding-bottom: 86px;
  }
}

/* Locations link panel */
.dd-location-note{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--dd-radius);
  border: 1px solid rgba(95,147,204,.22);
  background: rgba(255,255,255,.80);
  box-shadow: var(--dd-shadow-soft);
  color: var(--dd-muted);
}

.dd-location-note a{
  color: var(--dd-primary);
  font-weight: 800;
}

/* Toast */
.dd-toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 94px;
  z-index: 70;
  background: rgba(17,45,67,.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--dd-shadow);
  font-weight: 800;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: min(92vw, 520px);
  text-align: center;
}

.dd-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Progressive enhancement: style the existing markup even without extra wrappers */
.contact-page ul > li{
  margin: 0;
}
