/* ================================================
   Smart Contact Form – Front-End Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --scf-bg:       #0f0f13;
  --scf-surface:  #1a1a24;
  --scf-border:   #2e2e40;
  --scf-accent:   #6c63ff;
  --scf-accent2:  #ff6584;
  --scf-text:     #e8e8f0;
  --scf-muted:    #888899;
  --scf-radius:   14px;
  --scf-font:     'DM Sans', sans-serif;
  --scf-display:  'Playfair Display', serif;
}

.scf-wrapper {
  font-family: var(--scf-font);
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* ---- Card ---- */
.scf-card {
  background: var(--scf-surface);
  border: 1px solid var(--scf-border);
  border-radius: 24px;
  padding: 2.8rem 3rem;
  box-shadow:
    0 0 0 1px rgba(108,99,255,.15),
    0 30px 80px rgba(0,0,0,.5);
  position: relative;
  overflow: hidden;
}

.scf-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(108,99,255,.18) 0%, transparent 70%);
  pointer-events: none;
}

.scf-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,101,132,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Header ---- */
.scf-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.scf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--scf-accent), var(--scf-accent2));
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(108,99,255,.35);
}

.scf-title {
  font-family: var(--scf-display);
  font-size: 2rem;
  color: var(--scf-text);
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}

.scf-subtitle {
  color: var(--scf-muted);
  font-size: .92rem;
  margin: 0;
  line-height: 1.6;
}

/* ---- Alerts ---- */
.scf-alert {
  border-radius: 10px;
  padding: .85rem 1.1rem;
  font-size: .9rem;
  margin-bottom: 1.4rem;
  animation: scfFadeIn .3s ease;
}

.scf-alert--success {
  background: rgba(52,199,89,.15);
  border: 1px solid rgba(52,199,89,.4);
  color: #4cd964;
}

.scf-alert--error {
  background: rgba(255,59,48,.12);
  border: 1px solid rgba(255,59,48,.35);
  color: #ff6b6b;
}

/* ---- Row layout ---- */
.scf-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .scf-row--2 { grid-template-columns: 1fr; }
  .scf-card   { padding: 1.8rem 1.4rem; }
  .scf-title  { font-size: 1.6rem; }
}

/* ---- Fields ---- */
.scf-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.scf-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--scf-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .45rem;
}

.scf-field label span {
  color: var(--scf-accent2);
}

.scf-field input,
.scf-field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--scf-border);
  border-radius: var(--scf-radius);
  color: var(--scf-text);
  font-family: var(--scf-font);
  font-size: .95rem;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  resize: vertical;
}

.scf-field input::placeholder,
.scf-field textarea::placeholder {
  color: rgba(136,136,153,.5);
}

.scf-field input:focus,
.scf-field textarea:focus {
  border-color: var(--scf-accent);
  background: rgba(108,99,255,.06);
  box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

/* ---- Button ---- */
.scf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .9rem 1.5rem;
  margin-top: .6rem;
  background: linear-gradient(135deg, var(--scf-accent) 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--scf-radius);
  color: #fff;
  font-family: var(--scf-font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .01em;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 6px 20px rgba(108,99,255,.4);
}

.scf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(108,99,255,.5);
}

.scf-btn:active {
  transform: translateY(0);
  opacity: .9;
}

.scf-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.scf-btn__icon {
  transition: transform .2s;
}

.scf-btn:hover .scf-btn__icon {
  transform: translateX(4px);
}

/* ---- Animation ---- */
@keyframes scfFadeIn {
  from { opacity:0; transform: translateY(-6px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ---- Light-mode override (if WordPress theme is light) ---- */
@media (prefers-color-scheme: light) {
  .scf-wrapper {
    --scf-bg:      #f4f4f8;
    --scf-surface: #ffffff;
    --scf-border:  #e0e0ec;
    --scf-text:    #111118;
    --scf-muted:   #666677;
  }
}
