/* =====================================================
   IEEE RAS SMU — Contact Page (redesigned purple bg)
   ===================================================== */

.cg { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; max-width: 1100px; margin: 0 auto; }

.ctag { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pm); font-weight: 600; margin-bottom: 1rem; }
.ctitle { font-family: var(--fd); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.2rem; line-height: 1.15; }
.cdesc { color: var(--muted); font-size: .93rem; line-height: 1.85; font-weight: 300; margin-bottom: 2rem; }

.cis { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }
.ci {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,110,255,.06); border: 1px solid var(--border2);
  border-radius: 10px; padding: 1rem 1.4rem; transition: border-color .3s;
}
.ci:hover { border-color: rgba(255,110,255,.35); }
.cico { font-size: 1.2rem; flex-shrink: 0; }
.ctl label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pm); font-weight: 600; margin-bottom: .2rem; }
.ctl span  { font-size: .88rem; color: var(--muted); font-weight: 300; }

.slinks { display: flex; gap: .75rem; flex-wrap: wrap; }
.slk {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(255,110,255,.06); border: 1px solid var(--border);
  border-radius: 8px; padding: .65rem 1rem;
  font-size: .8rem; color: var(--muted); transition: all .3s; font-weight: 400;
}
.slk:hover { border-color: var(--pm); color: var(--pm); background: rgba(255,110,255,.12); }

.cform {
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 20px; padding: 3rem;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}
.cform::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(var(--pm), transparent 70%);
  opacity: .08; border-radius: 50%;
}
.ftitle { font-family: var(--fd); font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.fsub { font-size: .85rem; color: var(--muted); margin-bottom: 2rem; font-weight: 300; }

.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fg { margin-bottom: 1.5rem; position: relative; }
.fg label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pm); font-weight: 600; margin-bottom: .6rem; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .85rem 1.1rem; color: var(--text);
  font-family: var(--fb); font-size: .9rem; font-weight: 300;
  transition: border-color .3s, box-shadow .3s;
  outline: none; resize: none; -webkit-text-fill-color: var(--text);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--pm); box-shadow: 0 0 0 3px rgba(255,110,255,.14);
}
.fg select option { background: #130020; color: #fff; }
.fg textarea { height: 130px; }

.ferr { background: rgba(255,80,80,.10); border: 1px solid rgba(255,80,80,.30); border-radius: 8px; padding: .8rem 1rem; font-size: .85rem; color: #ff8080; margin-bottom: 1.2rem; }

.fsub-btn {
  width: 100%; padding: .9rem 2rem;
  background: linear-gradient(135deg, var(--pd), var(--pdk));
  color: #fff; border-radius: 8px;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 4px 28px rgba(160,32,200,.45);
  position: relative; overflow: hidden;
}
.fsub-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--pm), var(--pd)); opacity: 0; transition: opacity .3s; }
.fsub-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 44px rgba(255,110,255,.42); }
.fsub-btn:hover::before { opacity: 1; }
.fsub-btn span { position: relative; z-index: 1; }

.fsuc { display: none; text-align: center; padding: 2rem; }
.fsuc-i { font-size: 3rem; margin-bottom: 1rem; }
.fsuc h3 { font-family: var(--fd); font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; color: var(--pm); }
.fsuc p  { color: var(--muted); font-size: .9rem; font-weight: 300; }

@media (max-width: 1024px) { .cg { grid-template-columns: 1fr; gap: 3rem; } }
@media (max-width: 480px) { .fr { grid-template-columns: 1fr; } .cform { padding: 2rem; } }

/* ===== LIGHT MODE: CONTACT ===== */
[data-theme="light"] .ci {
  background: rgba(255,255,255,.60);
  border-color: rgba(124,34,184,.13);
}
[data-theme="light"] .ci:hover { border-color: rgba(160,32,200,.28); }

[data-theme="light"] .cform {
  background: rgba(255,255,255,.75);
  border-color: rgba(124,34,184,.16);
}
[data-theme="light"] .fg input,
[data-theme="light"] .fg select,
[data-theme="light"] .fg textarea {
  background: rgba(245,240,255,.80);
  border-color: rgba(124,34,184,.16);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
[data-theme="light"] .fg input:focus,
[data-theme="light"] .fg select:focus,
[data-theme="light"] .fg textarea:focus {
  border-color: var(--pm);
  box-shadow: 0 0 0 3px rgba(160,32,200,.10);
}
[data-theme="light"] .fg select option {
  background: #ede4ff;
  color: #1a003a;
}
[data-theme="light"] .slk {
  background: rgba(245,240,255,.60);
  border-color: rgba(124,34,184,.16);
  color: rgba(26,0,58,.65);
}
[data-theme="light"] .slk:hover {
  background: rgba(220,200,255,.45);
  border-color: var(--pm);
  color: var(--pm);
}
[data-theme="light"] .ferr {
  background: rgba(255,80,80,.06);
  border-color: rgba(255,80,80,.22);
}
[data-theme="light"] .fsuc h3 { color: var(--pm); }


/* ===== MAP SECTION ===== */
.map-wrap {
  position: relative;
}
.map-pin-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(22,0,31,.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  min-width: 200px;
}
@media(max-width:500px){
  .map-pin-card { position: static; margin-top: 1rem; }
}

