/**
 * Next Steps Modal Styles
 */

/* Container for the entire component */
.user-deferral-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
}

/* Title row */
.title-row {
  text-align: center;
  margin-bottom: 5px;
}

.title-row h3 {
  margin: 0;
  font-weight: bold;
}

/* Content area */
.deferral-content {
  display: flex;
  width: 100%;
}

/* Common styles for both sections */
.deferral-section, 
.type-section {
  display: flex;
}

/* No wrap for "Deferral %" */
.no-wrap {
  white-space: nowrap;
}

/* Input styling */
#userDeferralRateInput {
  padding: 6px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  color: #10b981;
  text-align: center;
  border: 1px solid #10b981;
  width: 120px;
  
}

#userDeferralRateInput:focus {
  outline: none;
  border-color: #10b981;
}

/* Button styling */
.deferral-choice-button {
  padding: 6px 12px;
  border: 1px solid #10b981;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  color: #10b981;
  border-radius: 4px;
  width: 120px;
}

.deferral-choice-button.selected {
  background-color: #10b981;
  color: white;
}

/* Wide screen layout */
@media (min-width: 601px) {
  .deferral-content {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  
  .deferral-section, 
  .type-section {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  
  .button-group {
    display: flex;
    gap: 10px;
  }
}

/* Narrow screen layout */
@media (max-width: 600px) {
  .deferral-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .deferral-section, 
  .type-section {
    flex-direction: column;
    align-items: center; /* Center align everything */
    width: 45%;
    margin-bottom: 5px;
    text-align: center;
  }
  
  .button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  #userDeferralRateInput,
  .deferral-choice-button {
    width: 100%;
    margin-top: 5px;
  }
  
  label {
    margin-bottom: 5px;
  }
  
  .type-label {
    text-align: center;
    width: 100%;
  }
}










/* Modal Background */
.next-steps-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.next-steps-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Prevent scrolling on body when modal is open */
body.next-steps-modal-open {
  overflow: hidden;
}

/* Modal Container */
.next-steps-container {
  background-color: #fff;
  border-radius: 4px;
  border: 15px solid #4A90E2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 1200px;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: next-steps-slide-in 0.3s ease;
  padding: 15px;
}

@keyframes next-steps-slide-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Header */
.next-steps-header {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: center;
  align-items: center;
}

.next-steps-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

.next-steps-header h2.bold {
  font-weight: 700;
}

.next-steps-header h2.italic {
  font-style: italic;
}

#next-steps-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  position: absolute;
  right: 20px;
  top: 20px;
}

#next-steps-close:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* Deferral Button Container */
.next-steps-button-container {
  padding: 10px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0px solid #eaeaea;
}

/* Deferral Button */
.next-steps-deferral-button {
  display: inline-block;
  background-color: #10b981; /* #4A90E2; */
  color: white;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.next-steps-deferral-button:hover {
  background-color: #10b981; /* #357ABD; */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.next-steps-deferral-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Modal Content */
.next-steps-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Bullets List */
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-steps-item {
  padding: 0;
}

.next-steps-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #333;
}

.next-steps-item h3.bold {
  font-weight: 700;
}

.next-steps-item h3.italic {
  font-style: italic;
}

.next-steps-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.next-steps-text p {
  margin: 0 0 12px 0;
}

.next-steps-text p:last-child {
  margin-bottom: 0;
}

/* Loading State */
.next-steps-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #666;
}

/* Error State */
.next-steps-error {
  padding: 20px;
  background-color: #fff0f0;
  border-radius: 4px;
  color: #d32f2f;
  text-align: center;
}

/* Empty State */
.next-steps-empty {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .next-steps-container {
    max-height: 90vh;
    border-radius: 0;
    max-width: 90%;
    height: 100%;
    border-width: 10px;
    padding: 10px;
  }
  
  .next-steps-modal {
    padding: 0;
  }
  
  .next-steps-header h2 {
    font-size: 1.3rem;
  }
  
  .next-steps-deferral-button {
    padding: 10px 18px;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .next-steps-modal {
    position: static;
    display: block;
    background: none;
    padding: 0;
  }
  
  .next-steps-container {
    box-shadow: none;
    max-width: 100%;
  }
  
  #next-steps-close {
    display: none;
  }
  
  .next-steps-button-container {
    display: none;
  }
} 