@charset "UTF-8";
/* Swallows Drug Trials - Frontend CSS (plugin-controlled) */

.sw-dt-wrap{
  max-width:1000px;
  margin:0 auto;
  padding:24px;
}

.sw-dt-title{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.2;
}

.sw-dt-intro{
  margin:0 0 18px;
  color:#555;
}

.sw-dt-errors{
  border:1px solid #cc0000;
  background:#fff5f5;
  padding:12px 14px;
  margin:0 0 16px;
}

.sw-dt-errors ul{margin:0;padding-left:18px}

.sw-dt-form label span{
  display:block;
  font-weight:600;
  margin:0 0 6px;
}

/* Bulletproof: force our field borders */
.sw-dt-form input,
.sw-dt-form textarea,
.sw-dt-form select{
  width:100% !important;
  max-width:100% !important;
  padding:10px !important;
  border:1px solid #000 !important;
  border-radius:6px !important;
  background:#fff !important;
  box-shadow:none !important;
  outline:none !important;
}

/* Some themes set textarea separately – override hard */
.sw-dt-form textarea{
  border:1px solid #000 !important;
  background:#fff !important;
  box-shadow:none !important;
}

/* Grid */
.sw-dt-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.sw-dt-full{grid-column:1 / -1}

.sw-dt-row{margin-top:14px}

/* Inline radios */
.sw-dt-inline{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.sw-dt-label{
  font-weight:600;
  margin-right:8px;
  margin-bottom:3px;
}

.sw-dt-radio{
  display:inline-flex !important;
  align-items:center;
  gap:8px;
  margin-right:8px;
  white-space:nowrap;
}

.sw-dt-radio span{
  display:inline !important;
  font-weight:400;
  margin:0 !important;
  white-space:nowrap;
}

.sw-dt-actions{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
}

/* Buttons */
.sw-dt-btn{
  display:inline-block;
  padding:12px 16px;
  border:1px solid #5b1e35 !important;
  color: #fff !important;
  background:#5b1e35 !important;
  border-radius:10px;
  text-decoration:none !important;
  cursor:pointer;
  box-shadow:none !important;
}
/* Button hover update */
.sw-dt-btn:hover{
  opacity:1 !important;
  background:#081542 !important;
  color:#fff !important;
  border-color:#081542 !important;
}
.sw-dt-btn-secondary{white-space:nowrap}

.sw-dt-message{
  padding:14px;
  border:1px solid #ccc;
  border-radius:10px;
  background:#fafafa;
}

/* Cards layout */
.sw-dt-cards{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:16px;
}

.sw-dt-card{
  display:grid;
  grid-template-columns:160px 1fr auto; /* wider logo column */
  gap:18px;
  align-items:center;
  border:1px solid #ddd;
  border-radius:14px;
  padding:18px;
}

/* LOGO FIX (no cropping, fills the column nicely) */
.sw-dt-logo{
  width:160px;
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sw-dt-logo img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;   /* prevents cut-off */
  object-position:center center !important;
  display:block;
}

/* Placeholder box same size as logo */
.sw-dt-logo-placeholder{
  width:160px;
  height:110px;
  border:1px dashed #aaa;
  border-radius:10px;
}

.sw-dt-card-title{
  margin:0 0 6px;
  font-size:20px;
}

.sw-dt-card-desc{
  margin:0;
  color:#555;
}

.sw-dt-muted{color:#777}

@media (max-width:760px){
  .sw-dt-grid{grid-template-columns:1fr}
  .sw-dt-card{grid-template-columns:1fr;align-items:start}
  .sw-dt-logo{width:100%;height:120px;justify-content:flex-start}
  .sw-dt-logo img{width:auto !important;height:100% !important}
  .sw-dt-card-cta{margin-top:6px}
}