/*
 * EvoCardLink Form - Frontend Styles
 * Standalone blank routes may still load theme CSS.
 * We therefore use strong namespaced selectors to keep UI consistent.
 */

/* Page base */
body.eclf-blank-page{
  background:#f3f4f6;
  margin:0;
  padding:0;
}

.eclf-wrap{
  max-width:980px;
  margin:28px auto;
  padding:0 18px;
}

/* Header banner */
.eclf-header-banner{
  border-radius:18px;
  overflow:hidden;
  margin:0 0 14px;
  background:#0b0b0b;
  box-shadow:0 10px 30px rgba(0,0,0,.10);
}
.eclf-header-banner img{
  width:100%;
  height:auto;
  display:block;
}

/* Main card */
.eclf-card{
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  box-shadow:0 12px 34px rgba(0,0,0,.06);
  padding:22px;
}

.eclf-form-message{
  margin:0 0 16px;
  padding:16px 18px;
  background:#f9fafb;
  border:1px solid rgba(17,24,39,.10);
  border-radius:16px;
}
.eclf-form-message h1,
.eclf-form-message h2,
.eclf-form-message h3{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.25;
}
.eclf-form-message p{
  margin:0 0 10px;
  color:#374151;
}
.eclf-form-message p:last-child{margin-bottom:0;}
.eclf-form-message a{color:#ff2d00;text-decoration:underline;}

/* Duplicate submission notice */
.eclf-dup-notice{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  background:#fffbeb;
  border:1px solid rgba(245,158,11,.35);
  color:#92400e;
}
.eclf-dup-notice strong{color:#78350f;}

@media(max-width:700px){
  .eclf-card{padding:16px;}
  .eclf-wrap{margin:18px auto;}
}

/* Title + intro */
.eclf-title{
  font-size:28px;
  line-height:1.2;
  margin:0 0 8px;
  color:#111827;
}
.eclf-subtitle{
  margin:0 0 16px;
  color:#6b7280;
  font-size:14px;
}

/* Alerts */
.eclf-alert{
  border-radius:14px;
  padding:12px 14px;
  margin:10px 0 14px;
  font-size:14px;
}
.eclf-alert-error{
  background:#fff5f5;
  border:1px solid #fecaca;
  color:#991b1b;
}
.eclf-alert-success{
  background:#ecfeff;
  border:1px solid #a5f3fc;
  color:#164e63;
}

/* Honeypot: keep in DOM, hide visually */
.eclf-hp{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Section layout */
.eclf-section{
  border-top:1px solid rgba(17,24,39,.06);
  padding-top:18px;
  margin-top:18px;
}
.eclf-section:first-of-type{
  border-top:0;
  padding-top:0;
  margin-top:0;
}
.eclf-section h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.3;
  color:#111827;
}
.eclf-tip{
  margin:0 0 10px;
  color:#6b7280;
  font-size:13px;
}

/* Force single-column fields */
.eclf-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.eclf-field label{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:700;
  font-size:13px;
  margin:0 0 6px;
  color:#111827;
}

.eclf-field input[type=text],
.eclf-field input[type=email],
.eclf-field input[type=url],
.eclf-field input[type=number],
.eclf-field input[type=tel],
.eclf-field textarea,
.eclf-field select{
  width:100%;
  border:1px solid rgba(17,24,39,.18);
  border-radius:14px;
  padding:12px 14px;
  font-size:15px;
  background:#fff;
  color:#111827;
  box-sizing:border-box;
  outline:none;
}

.eclf-field textarea{min-height:92px;resize:vertical;}

.eclf-field input:focus,
.eclf-field textarea:focus,
.eclf-field select:focus{
  /* Green focus highlight (only errors should be red) */
  border-color:#16a34a;
  box-shadow:0 0 0 4px rgba(22,163,74,.16);
}

.eclf-field small{
  display:block;
  margin-top:6px;
  color:#6b7280;
  font-size:12px;
  line-height:1.35;
}

/* Checkbox blocks (PDPA style) */
.eclf-checkbox label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 14px;
  background:#f9fafb;
  border:1px solid rgba(17,24,39,.10);
  border-radius:14px;
}
.eclf-checkbox input[type=checkbox]{
  margin-top:3px;
}
.eclf-checkbox span{
  font-size:14px;
  line-height:1.45;
  color:#111827;
}
.eclf-checkbox a{
  margin-left:8px;
  color:#374151;
  text-decoration:underline;
  font-size:13px;
}

/* Required marker */
.req,
.eclf-required{
  color:#ff2d00;
  font-weight:800;
}

/* Consent */
.eclf-consent-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:10px 0 0;
}
.eclf-consent-row input{
  margin-top:4px;
}
.eclf-consent-row label{
  font-weight:500;
  font-size:14px;
  line-height:1.45;
  color:#111827;
}

/* Buttons */
.eclf-actions{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

.eclf-btn{
  border-radius:16px;
  padding:12px 18px;
  font-size:16px;
  font-weight:800;
  border:0;
  cursor:pointer;
  transition:filter .15s ease, transform .15s ease;
}

.eclf-btn-primary{
  background:#ff2d00;
  color:#fff;
}

.eclf-btn-primary:hover{
  filter:brightness(.95);
  transform:translateY(-1px);
}

.eclf-note{
  color:#6b7280;
  font-size:12px;
}

/* File inputs */
.eclf-field input[type=file]{
  width:100%;
  padding:10px;
  border-radius:14px;
  border:1px dashed rgba(17,24,39,.22);
  background:#f9fafb;
}

/* Success wrapper */
.eclf-success .eclf-card{
  text-align:left;
}

/* Inline field error */
.eclf-field.has-error input,
.eclf-field.has-error textarea,
.eclf-field.has-error select{
  border-color:#dc2626;
  outline-color:#dc2626;
}

/* If field has error, keep the focus ring in red as well */
.eclf-field.has-error input:focus,
.eclf-field.has-error textarea:focus,
.eclf-field.has-error select:focus{
  box-shadow:0 0 0 4px rgba(220,38,38,.14);
}

.eclf-field-error{
  margin-top:6px;
  font-size:13px;
  color:#dc2626;
  font-weight:600;
}
