* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f7fb;
  color: #1d2433;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.hero,
.record-section,
.thankyou-section {
  padding: 50px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.hero-card,
.form-card,
.member-card,
.script-box,
.thankyou-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(16, 24, 40, 0.08);
  padding: 28px;
}

.hero-card h1,
.form-card h2,
.thankyou-card h1 {
  margin-bottom: 12px;
}

.subtext {
  color: #5d6472;
  margin-bottom: 20px;
}

.script-box {
  margin-top: 20px;
}

.script-box h3 {
  margin-bottom: 12px;
}

.script-box p {
  line-height: 1.7;
  color: #333;
}

.info-box {
  margin-top: 20px;
  padding: 18px;
  background: #f7f9fd;
  border-radius: 14px;
}

.info-box ul {
  margin-top: 10px;
  padding-left: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  height: 48px;
  border: 1px solid #d8dfeb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.form-group input:focus {
  border-color: #1d5eff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.6;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.inline-btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #1d5eff;
  color: #fff;
}

.btn-secondary {
  background: #eef3ff;
  color: #1d5eff;
}

.btn-danger {
  background: #e63946;
  color: #fff;
}

.btn-success {
  background: #1b9c5a;
  color: #fff;
}

.form-card .btn-primary {
  width: 100%;
}

.record-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.video-panel,
.script-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-panel h2 {
  margin-bottom: 10px;
}

.video-wrapper {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  background: #000;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-box {
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f1f3f7;
  color: #333;
  line-height: 1.5;
}

.status-box.success {
  background: #e9f8ef;
  color: #1b7b45;
}

.status-box.error {
  background: #ffe9e9;
  color: #c62828;
}

.status-box.recording {
  background: #fff4e5;
  color: #a15c00;
}

.status-box.uploading {
  background: #eef4ff;
  color: #2156c9;
}

.member-card p {
  margin-bottom: 10px;
}

.thankyou-card {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

.summary {
  margin: 25px 0;
  text-align: left;
  background: #f8faff;
  border-radius: 14px;
  padding: 20px;
}

.video-link-box {
  background: #f8faff;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  word-break: break-word;
}

.video-link-box a {
  color: #1d5eff;
  text-decoration: none;
}

.thumb-preview-box {
  margin: 18px 0 8px;
}

.campaign-thumb {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.video-wrapper {
  position: relative;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.thumb-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.script-content p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.script-content ul,
.script-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.script-content li {
  margin-bottom: 8px;
}

.video-wrapper {
  position: relative;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 420px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  background: #000;
}

#preview,
#playback {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.thumb-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .hero .container,
  .record-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-success {
    width: 100%;
  }
}