/* Container for the central content */
.content-wrapper {
  max-width: 80%;
  margin: 0 auto;
}

/* Top "Email" Header Bar */
.page-header-bar {
  display: flex;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0px 4px 4px 0px #00000040;
  margin-bottom: 2rem;
  font-size: 26px;
  font-weight: 700;
  color: #067577;
  padding: 15px;
  width: 95%;
  max-width: 95%;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 0rem;
}

.page-header-bar h1 {
  margin: 0;
  font-size: 24px;
  color: #0f767a; /* Teal color matching text */
  font-weight: 700;
}

/* Main Form Container */
.form-container {
  padding: 10px;
  max-width: 90%;
  margin: auto;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Headings */
h2.section-title {
  text-align: center;
  color: #1e3a56; /* Dark Navy */
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 30px;
}

h3.subsection-title {
  text-align: center;
  color: #1e3a56;
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 20px;
}

.draft-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  cursor: pointer; /* Indicates it's interactive */
}

.draft-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  color: #1e3a56;
}

.draft-radio {
  transform: scale(1.5); /* Make radio button bigger */
  margin-right: 10px;
  cursor: pointer;
  accent-color: #0e767a; /* Matches your Teal theme */
}

.draft-label {
  cursor: pointer;
  font-size: 18px;
}

/* Textarea styling tweaks */
.draft-textarea {
  min-height: 150px !important;
  background-color: #ffffff;
  border: 1px solid #ccc;
}

/* Hover State */
.draft-card:hover {
  border-color: #9fccf1;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* ACTIVE/SELECTED STATE */
.draft-card.active-draft {
  border-color: #0e767a; /* Teal border */
  background-color: #eaf8f8; /* Light teal background */
  box-shadow: 0 4px 12px rgba(14, 118, 122, 0.2);
}

.draft-card.active-draft .draft-textarea {
  border-color: #0e767a;
}

/* Form Groups */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  color: #0e767a; /* Teal label color */
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
}

/* Inputs, Selects, Textareas */
.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  border: 0.5px solid #9fccf1;
  color: #1a629e;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.form-control:focus {
  outline: none;
  border-color: #0e767a;
  background-color: #fff;
}

select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e767a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

select.form-control:focus,
select.form-control:hover {
  border-color: #0e767a;
}

/* Specific heights for textareas */
textarea.form-control {
  resize: vertical;
  min-height: 50px;
}

#draft-1,
#draft-2 {
  min-height: 120px;
  cursor: pointer;
}

/* Buttons */
.text-center {
  text-align: center;
  margin: 20px 0;
}

.btn-submit {
  background-color: #0e767a;
  color: white;
  border: none;
  padding: 12px 50px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(14, 118, 122, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 1) 100%);
  transform: scale(1.05);
}

/* Note Box */
.note-box {
  background-color: #eaf4fb;
  border: 1px solid #dcebf5;
  padding: 20px;
  border-radius: 6px;
  color: #3b5d7c;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 40px;
  margin-bottom: 30px;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.note-box strong {
  color: #1e3a56;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: none;
}

.overlay-text {
  color: white;
}

.loader-icon {
  font-size: 2em;
  vertical-align: middle;
  margin-right: 0.5em;
}
