/* ============================================
   ORDER FORM REDESIGN - CALCULATE YOUR PRICE
   New Modern Design with Deadline Button Cards
   ============================================ */

/* Form Title and Subtitle */
.calculatePrice .form-main-title {
  font-size: 32px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 10px;
  margin-top: 0;
  line-height: 1.2;
}

.calculatePrice .form-subtitle {
  font-size: 15px;
  color: #7C8CA3;
  margin-bottom: 36px;
  margin-top: 0;
}

/* Updated Label Styling */
.calculatePrice .inputGroup label {
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 1px;
}

.calculatePrice .inputGroup label .required {
  color: #df4d4d;
  margin-left: 2px;
}

.tooltip-icon {
  display: inline-flex;
  cursor: help;
  opacity: 0.6;
  transition: opacity 0.2s;
  position: relative;
}

.tooltip-icon:hover {
  opacity: 1;
}

/* Tooltip styling */
.tooltip-icon[title] {
  position: relative;
}

.tooltip-icon[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 12px;
  background: #1E293B;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  pointer-events: none;
}

.tooltip-icon[title]:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  border: 4px solid transparent;
  border-top-color: #1E293B;
  z-index: 1000;
  pointer-events: none;
}

/* Select Styling Updates */
.calculatePrice .inputGroup select {
  font-size: 14px;
  color: #202124;
  padding: 13px 40px 13px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  transition: all 0.2s;
}

.calculatePrice .inputGroup select:hover {
  border-color: #233F8C;
}

.calculatePrice .inputGroup select:focus {
  border: 1px solid #233F8C;
}

/* Academic Level and Number of Pages Layout */
.calculatePrice .formGroup {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculatePrice .formGroup > .inputGroup.selectGroup {
  width: 100%;
}

/* Page Number and Academic Level in Same Row */
.calculatePrice .dateGroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

.calculatePrice .dateGroup .inputGroup {
  margin-bottom: 0;
  width: 100%;
}

.calculatePrice .dateGroup .inputGroup:first-child {
  flex-basis: auto;
}

.calculatePrice .pageInput {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 100%;
  width: 100%;
}

.calculatePrice .freePagesWrapper {
  position: relative;
  width: 100%;
}

.calculatePrice .pageInput input {
  max-width: 100%;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 13px 55px;
  margin: 0;
  background: #fff;
  height: 48px;
}

.calculatePrice .pageInput input:hover {
  border-color: #233F8C;
}

.calculatePrice .pageInput input:focus {
  border: 1px solid #233F8C;
  outline: none;
}

.calculatePrice .pageInput a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 48px;
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  position: absolute;
  padding: 0;
  border: none;
}

.calculatePrice .pageInput a#minusPage {
  left: 0;
  z-index: 1;
  border-radius: 6px 0 0 6px;
}

.calculatePrice .pageInput a#plusPage {
  right: 0;
  border-radius: 0 6px 6px 0;
}

.calculatePrice .pageInput a:hover:not([disabled]) {
  background: #f0f8ff;
}

.calculatePrice .pageInput a:hover:not([disabled]) svg path {
  fill: #233F8C;
}

.calculatePrice .pageInput a[disabled] {
  pointer-events: none;
  opacity: 1;
  cursor: not-allowed;
}

.calculatePrice .pageInput a[disabled] svg path {
  fill: #CBD5E1 !important;
}

.calculatePrice .pageInput a svg {
  width: 16px;
  height: 16px;
}

.calculatePrice .pageInput a svg path {
  fill: #233F8C !important;
  transition: fill 0.2s;
}

/* Ensure minus button is visible */
.calculatePrice .pageInput a#minusPage svg path {
  fill: #233F8C !important;
}

/* Minus button when disabled - lighter but still visible */
.calculatePrice .pageInput a#minusPage[disabled] svg path {
  fill: #94A3B8 !important;
}

/* Plus button styling */
.calculatePrice .pageInput a#plusPage svg path {
  fill: #233F8C !important;
}

.calculatePrice .pageInput a#plusPage[disabled] svg path {
  fill: #94A3B8 !important;
}

.calculatePrice .pageToWord {
  font-size: 12px;
  color: #a1acb9;
  margin-top: 6px;
  margin-bottom: 0;
  text-align: left;
  display: block;
}

/* ============================================
   DEADLINE BUTTON CARDS
   ============================================ */

.deadline-section .deadLabel {
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deadline-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.deadline-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #fff;
  border: 1.5px solid #edf3fb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 88px;
}

.deadline-btn:hover {
  border-color: #233F8C;
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 63, 140, 0.1);
}

.deadline-btn.active {
  border-color: #233F8C;
  background: #f0f8ff;
  box-shadow: 0 4px 12px rgba(35, 63, 140, 0.15);
}

.deadline-btn.urgent {
  border-color: #FEF3C7;
  background: #FFFBEB;
}

.deadline-btn.urgent:hover,
.deadline-btn.urgent.active {
  border-color: #F59E0B;
  background: #FEF3C7;
}

.deadline-btn .deadline-time {
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 4px;
  display: block;
}

.deadline-btn .deadline-badge {
  font-size: 11px;
  font-weight: 600;
  color: #233F8C;
  background: #f0f8ff;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  display: inline-block;
}

.deadline-btn.urgent .deadline-badge {
  background: #FEF3C7;
  color: #D97706;
}

.deadline-btn .deadline-date {
  font-size: 12px;
  color: #a1acb9;
  margin-top: 2px;
}

/* ============================================
   UNLOCK YOUR EXACT PRICE HEADER
   ============================================ */

.unlock-price-header {
  text-align: center;
  margin: 20px 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unlock-price-header::before,
.unlock-price-header::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E5E7EB;
}

.unlock-price-header::before {
  margin-right: 24px;
}

.unlock-price-header::after {
  margin-left: 24px;
}

.unlock-price-header h3 {
  font-size: 12px;
  font-weight: 400;
  color: #C7CCD1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* ============================================
   UNLOCK PRICE INFO BOX
   ============================================ */

.unlock-price-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 8px;
  margin: 20px 0 0 0;
}

.unlock-price-info svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.unlock-price-info svg rect {
  fill: #f0f8ff;
}

.unlock-price-info svg path {
  stroke: #233F8C;
}

.unlock-price-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #0F172A;
}

.unlock-price-info strong {
  font-weight: 600;
  color: #233F8C;
}

/* ============================================
   CONTACT FIELDS (EMAIL & PHONE)
   ============================================ */

.contact-fields-group {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.contact-fields-group .inputGroup {
  margin-bottom: 0;
}

.contact-fields-group input {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 14px;
  color: #202124;
}

.contact-fields-group input::placeholder {
  color: #a1acb9;
}

.contact-fields-group input:hover {
  border: 1px solid #233F8C;
}

.contact-fields-group input:focus {
  border: 1px solid #233F8C;
}

/* ============================================
   STEP 2 - PAPER DETAILS FORM
   ============================================ */

/* Section Headers with Icons */
#step2 .provideDetails .formGroup {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}

.section-header-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header-icon svg {
  width: 20px;
  height: 20px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  margin: 0;
}

/* Paper Settings Section */
.paper-settings-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.paper-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.paper-settings-grid .inputGroup {
  margin-bottom: 0;
}

/* Essay Details Section */
.essay-details-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.essay-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.citation-sources-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Attachments Section */
.attachments-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.attachments-section .attachLbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px dashed #BFDBFE;
  border-radius: 12px;
  padding: 48px 24px;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.attachments-section .attachLbl:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
}

.attachments-section .attachLbl svg {
  margin-bottom: 8px;
}

.attachments-section .attachLbl .text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachments-section .attachLbl .main {
  font-size: 15px;
  font-weight: 500;
  color: #3B82F6;
  margin: 0;
}

.attachments-section .attachLbl .desc {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

/* Form Input Styling for Step 2 */
#step2 .inputGroup label {
  font-size: 14px;
  font-weight: 500;
  color: #0F172A;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#step2 .inputGroup input[type="text"],
#step2 .inputGroup textarea,
#step2 .inputGroup select {
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 14px;
  color: #202124;
  transition: all 0.2s;
  width: 100%;
}

#step2 .inputGroup input:hover,
#step2 .inputGroup textarea:hover,
#step2 .inputGroup select:hover {
  border-color: #233F8C;
}

#step2 .inputGroup input:focus,
#step2 .inputGroup textarea:focus,
#step2 .inputGroup select:focus {
  border: 1px solid #233F8C;
  outline: none;
}

#step2 .inputGroup textarea {
  min-height: 120px;
  resize: vertical;
}

#step2 .inputGroup .optional {
  font-size: 13px;
  font-weight: 400;
  color: #64748B;
}

#step2 .inputGroup .required {
  color: #EF4444;
}

/* Hide file input */
#step2 input[type="file"] {
  display: none;
}

/* Button Styling for Step 2 */
#step2 .orderBtns {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

#step2 .orderBtns .prevBtn {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #1E293B;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

#step2 .orderBtns .prevBtn:hover {
  background: #F8FAFC;
  border-color: #233F8C;
}

#step2 .orderBtns .nextBtn {
  background: #3B82F6;
  border: none;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

#step2 .orderBtns .nextBtn:hover {
  background: #2563EB;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .deadline-buttons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .calculatePrice .form-main-title {
    font-size: 24px;
  }

  .calculatePrice .form-subtitle {
    font-size: 14px;
  }

  .deadline-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .deadline-btn {
    padding: 14px 10px;
    min-height: 80px;
  }

  .deadline-btn .deadline-time {
    font-size: 14px;
  }

  .deadline-btn .deadline-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  .contact-fields-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calculatePrice .dateGroup {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calculatePrice .dateGroup .inputGroup {
    width: 100%;
  }

  .paper-settings-grid,
  .citation-sources-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .paper-settings-section,
  .essay-details-section,
  .attachments-section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .orderForm {
    padding: 30px 20px 60px 20px;
  }

  .calculatePrice .form-main-title {
    font-size: 20px;
  }

  .deadline-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .deadline-btn {
    padding: 12px 8px;
    min-height: 75px;
  }

  .deadline-btn .deadline-time {
    font-size: 13px;
  }

  .addons-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   ADMISSION FIELDS ROW STYLING
   ============================================ */

.admissionFieldsRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.admissionFieldsRow .inputGroup {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .admissionFieldsRow {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ============================================
   STEPS NAVIGATION STYLING
   ============================================ */

/* Steps container */
.allStepsName {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 100%;
  width: 100%;
  margin: 40px auto 52px;
}

/* Individual step styling */
.allStepsName h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0;
  border: none;
  background: transparent;
  color: #94A3B8;
  border-bottom: none !important;
}

/* Step number circle */
.allStepsName h2 .stepNo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Active step styling */
.allStepsName h2.activeProg {
  color: #1E293B;
  border: none !important;
}

.allStepsName h2.activeProg .stepNo {
  background: #3B82F6;
  color: #FFFFFF;
}

/* Completed step styling */
.allStepsName h2.activeProgComplete,
.allStepsName h2.overIt {
  color: #10B981;
  border: none !important;
  padding-left: 0;
}

.allStepsName h2.activeProgComplete .stepNo,
.allStepsName h2.overIt .stepNo {
  background: #10B981;
  color: #FFFFFF;
}

/* Remove old checkmark styling */
.allStepsName h2.overIt::before {
  display: none;
}

/* Hide step text on mobile */
@media (max-width: 768px) {
  .allStepsName {
    gap: 20px;
  }

  .allStepsName h2 {
    font-size: 0;
  }

  .allStepsName h2 .stepNo {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ============================================
   STEP 2-2 - ENHANCE YOUR ORDER (ADD-ONS)
   ============================================ */
/* Add-ons styling moved to orderBonus.css */

/* ============================================
   ADMISSION ESSAY FORM - SECTIONED LAYOUT
   ============================================ */

/* Section Container */
.admission-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Section Header with Icon */
.section-header-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-header-with-icon svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1E293B;
  margin: 0;
}

/* Section Description */
.section-description {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.5;
}

/* Two-Column Layout for Preferences */
.admission-preferences-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Upload Area Styling */
.upload-area {
  background: #F9FAFB;
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover {
  background: #F3F4F6;
  border-color: #3B82F6;
}

.upload-area svg {
  margin: 0 auto 12px;
  width: 40px;
  height: 40px;
}

.upload-area p {
  margin: 0;
  font-size: 14px;
  color: #6B7280;
}

.upload-area p.main {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 4px;
}

.upload-area p.desc {
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 4px;
}

/* Tips Section */
.admission-tips-section {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tips-header svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.tips-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1E40AF;
  margin: 0;
}

.tips-list {
  margin: 0;
  list-style: none;
}

.tips-list li {
  font-size: 14px;
  color: #1E40AF;
  line-height: 1.6;
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

ul.tips-list li svg {
    position: absolute;
    left: 0;
    top: 5px;
}

/* Character counters for new textareas */
.characterCount {
  text-align: right;
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}

/* Spacing between fields in admission sections */
.admission-section .inputGroup {
  margin-bottom: 24px;
}

.admission-section .inputGroup:last-of-type {
  margin-bottom: 0;
}

/* Target Schools and Intended Major spacing */
#target_schools_group {
  margin-bottom: 20px;
}

#intended_major_group {
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admission-section {
    padding: 20px;
  }

  .admission-preferences-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-title {
    font-size: 16px;
  }

  .section-description {
    font-size: 13px;
  }
}
