/* TAP Awards – அமெரிக்கத் தமிழர் முன்னோடிகள் விருதுகள்
   Styles | v1.0.0
   Color scheme: Deep Maroon & Gold
   Full Unicode / Tamil script support */

*,*::before,*::after{box-sizing:border-box}

.tap-wrap{
  max-width:820px;
  margin:0 auto;
  font-family:'Segoe UI','Noto Sans Tamil',Arial,sans-serif;
  color:#333;
  line-height:1.6;
}

/* ── Header ─────────────────────────────────────── */
.tap-header{
  background:linear-gradient(135deg,#4a0f27 0%,#5a1330 45%,#C8922A 100%);
  color:#fff;
  border-radius:10px 10px 0 0;
  padding:24px 28px 20px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.tap-title-ta{margin:0 0 3px;font-size:1.18em;font-weight:700;letter-spacing:.2px;color:#fff!important}
.tap-title-en{margin:0 0 3px;font-size:1em;font-weight:600;color:#fff!important;opacity:.92}
.tap-subtitle{margin:0;font-size:.88em;color:#fff!important;opacity:.82}

.tap-badge{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.3);
  border-radius:8px;
  padding:10px 16px;
  display:inline-block;
  flex-shrink:0;
}
.tap-badge span{display:block;font-size:.7em;text-transform:uppercase;letter-spacing:1px;opacity:.85;margin-bottom:3px}
.tap-badge strong{font-size:.95em}

/* ── Banner ─────────────────────────────────────── */
.tap-banner{margin:0;border:1px solid #ecd9e0;border-top:none;background:#fdf8fa}
.tap-banner img{display:block;width:100%;height:auto}

/* ── Alerts ─────────────────────────────────────── */
.tap-alert{padding:13px 18px;border-radius:6px;margin:14px 0;font-weight:600;font-size:.94em;line-height:1.5}
.tap-alert--ok {background:#fdf3e3;color:#5a1330;border:1px solid #e8c98f}
.tap-alert--err{background:#fce4ec;color:#880e4f;border:1px solid #f48fb1}

/* ── Sections ───────────────────────────────────── */
.tap-section{
  background:#fff;
  border:1px solid #ecd9e0;
  border-top:none;
  padding:0 24px 20px;
}
.tap-section:last-of-type{border-radius:0 0 10px 10px}
.tap-section--intro{padding:18px 24px}

.tap-intro-text{margin:0;font-size:.95em;color:#444;line-height:1.7}

.tap-section-head{
  display:flex;align-items:center;gap:12px;
  font-weight:700;font-size:.98em;color:#5a1330;
  padding:16px 0 12px;
  border-bottom:2px solid #fdf3e3;
  margin-bottom:16px;
}
.tap-section-num{
  background:linear-gradient(135deg,#5a1330,#C8922A);
  color:#fff;
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.82em;flex-shrink:0;
}

/* ── Grid ───────────────────────────────────────── */
.tap-row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.tap-field{display:flex;flex-direction:column}
.tap-field--full{flex:0 0 100%}
.tap-field--half{flex:1;min-width:230px}

/* ── Labels ─────────────────────────────────────── */
.tap-field label{
  font-weight:600;font-size:.87em;
  margin-bottom:5px;color:#444;line-height:1.5;
}
.tap-req{color:#C8922A}
.tap-hint{font-size:.8em;color:#888;margin:6px 0 0;font-style:italic;line-height:1.6}
.tap-hint-text{display:block;font-weight:400;color:#888;font-style:italic;font-size:.85em}
.tap-link{color:#5a1330;font-weight:600;text-decoration:none}
.tap-link:hover{text-decoration:underline}

/* ── Inputs ─────────────────────────────────────── */
.tap-field input[type=text],
.tap-field input[type=email],
.tap-field input[type=tel],
.tap-field select,
.tap-field textarea{
  border:1.5px solid #e0c4ce;
  border-radius:5px;
  padding:9px 12px;
  font-size:.94em;
  background:#fff;
  font-family:inherit;
  color:#333;
  transition:border-color .15s, box-shadow .15s;
  width:100%;
}
.tap-field textarea{resize:vertical;line-height:1.6}
.tap-field input:focus,
.tap-field select:focus,
.tap-field textarea:focus{
  outline:none;
  border-color:#5a1330;
  box-shadow:0 0 0 3px rgba(90,19,48,.12);
}

/* ── Mandatory note ─────────────────────────────── */
.tap-mandatory-note{
  margin:12px 0 0;
  font-size:.84em;
  color:#666;
  font-style:italic;
  line-height:1.6;
}

/* ── Submit ─────────────────────────────────────── */
.tap-submit-row{
  background:#fff;
  border:1px solid #ecd9e0;
  border-top:none;
  border-radius:0 0 10px 10px;
  padding:20px 24px;
  text-align:center;
}
#tap-btn{
  background:linear-gradient(135deg,#5a1330 0%,#7d1f3f 50%,#C8922A 100%);
  color:#fff;
  border:none;
  border-radius:6px;
  padding:13px 38px;
  font-size:1em;
  font-weight:700;
  cursor:pointer;
  transition:transform .1s, box-shadow .2s;
  font-family:inherit;
  letter-spacing:.3px;
}
#tap-btn:hover{
  box-shadow:0 4px 14px rgba(90,19,48,.3);
  transform:translateY(-1px);
}
#tap-btn:disabled{opacity:.65;cursor:not-allowed;transform:none}

.tap-privacy{
  margin:14px 0 0;
  font-size:.78em;
  color:#777;
  line-height:1.5;
}

/* ── Closed message ─────────────────────────────── */
.tap-closed{
  margin:0;font-weight:600;color:#880e4f;text-align:center;font-size:.95em;
  padding:14px;background:#fce4ec;border-radius:6px;
}

/* ── Branding ───────────────────────────────────── */
.tap-branding{
  text-align:center;margin:16px 0 0;
  font-size:.8em;color:#999;
}
.tap-branding a{color:#5a1330;text-decoration:none;font-weight:600}
.tap-branding a:hover{text-decoration:underline}

/* ── Errors ─────────────────────────────────────── */
.tap-err{display:block;color:#880e4f;font-size:.85em;margin-top:6px}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width:640px){
  .tap-header{padding:18px 18px 14px}
  .tap-title-ta{font-size:1.05em}
  .tap-section{padding:0 16px 16px}
  .tap-section-head{font-size:.92em;padding:14px 0 10px}
  .tap-field--half{min-width:100%}
  #tap-btn{padding:12px 26px;font-size:.95em;width:100%}
  .tap-submit-row{padding:16px}
}

/* TAP Awards nomination checkbox/document fields */
.tap-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  margin-top:8px;
}
.tap-check{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid #d8e3f0;
  border-radius:12px;
  background:#fff;
}
.tap-check input[type="checkbox"]{ margin:0; }
.tap-check--other input[type="text"]{
  flex:1;
  min-width:140px;
  padding:8px 10px;
  border:1px solid #ccd7e6;
  border-radius:8px;
}
.tap-important-box{
  margin-top:16px;
  padding:14px 16px;
  border-left:4px solid #b42318;
  background:#fff4f2;
  border-radius:10px;
  color:#3b1d1a;
  line-height:1.55;
}
@media (max-width:720px){
  .tap-check-grid{ grid-template-columns:1fr; }
}
