/* REQUIREMENT Modal Nr.2 */


/*
✅ What’s going wrong

- Your checkboxes are appearing on their own lines, far from the label text.
- The label text is misaligned and starts way off to the right.
- The spacing between checkbox and label is too big, making the form look broken.
*/

/*-----------REQUIREMENTS MODAL-----------*/
.consent-container {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  gap: 0.6rem;
  font-size: 0.9rem; /* Slightly smaller font size */
}

/* FEW DETAILS */
.input-with-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.3rem;
}

.input-with-currency input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.currency-label {
  font-size: 0.9rem;
  color: #f1ebeb;
}

.quantity-label {
  font-size: 0.9rem;
  color: #f1ebeb;
}




/* ✅RADIO TITLE START */

/* Aligns label with radios */

.title-label{
    font-weight: 600;
    color: #000;
    min-width: 60px;
}


.radio-box{
  display: flex;
  margin-top: 0.3rem;
  gap: 8rem;               /* Space between radio options */
  flex-wrap: wrap;
  padding: 0rem;       /* space just below radio/label box */
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-wrap: wrap;
}



/* Label and radio side by side */
.radio-box label{
  display: inline-flex;           /* ✅ THIS is critical */
  align-items: center;            /* ✅ Vertically centers radio and text */ /* nothig happened */
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  gap: 6px;          /* space between circle/label. But nothing happend. */
  color: #000;    /* Mr color */
  font-size: 0.95rem;
  font-weight: 600;
  padding: 4px 8px;
  background-color: transparent;
}

.radio-box input[type="radio"]{
    appearance: none;               /* ✅ Remove default style */
    cursor: pointer;
    width: 10px;
    height: 10px;
    border: 2px solid #555;
    border-radius: 50%;
    position: relative;
    accent-color: #007bff;
    transform: scale(1.1);
    margin: 0;
}

.radio-box input[type="radio"]:checked::before{
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background-color: #007BFF;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
}

/* RADIO TITLE END */



/* Container for both checkboxes */
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Checkbox */
.consent-checkbox {
  margin-top: 4px;
  width: auto;
  height: auto;
  flex: 1; /* ✅ Better choice */
}

/* The label text next to the checkbox */
.consent-text {
  line-height: 1.5;
  color: #f4f4f4;
  font-size: 0.9rem;
  margin: 0;
  flex: 8; /* ✅ Allow it to grow if needed */
}

.modal-content label.modal-label{
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #f4f4f4;
}

.modal-content .info-icon {
  font-size: 0.85em;
  color: #f4f4f4;
  margin-left: 5px;
  border-radius: 50%;
  padding: 0 4px;
  /*  cursor: help; */
}

.modal-content .consent-label{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap : 10px;
  font-weight: normal; /* override modal label weight */
  width: 100%;
}

/*second part*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  color: #f4f4f4; /* Light text color */
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #263d64; /* Dark blue background */
  color: #f4f4f4; /* Light text color */
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}

.modal-content h2 {
  margin-top: 0;
  padding-bottom: 16px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #f4f4f4; /* Light text color */
}

.modal-content label:not(.consent-text) {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}




/* ----------------------Submit & Reset buttons */
/* Flex container for both buttons */
.modal-content .btn-group {
  display: flex;
  gap: 10px; /* spacing between buttons */
  margin-top: 1.5rem;
}

/* Primary button (you already had this) */
.modal-content .btn-primary {
  padding: 0.7rem 1.5rem;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* Hover state fix */
.modal-content .btn-primary:hover {
  background-color: #0056b3;
  color: #fff; /* ✅ Fixed: added missing # */
}

/* Optional: consistent button base class */
.modal-content .btn {
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* Reset (secondary) button style */
.modal-content .btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

/* ----------------------Submit & Reset buttons END */

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
/* Override block label layout */
.modal-content .consent-item label.consent-text {
  display: inline-block;
  font-weight: normal;
  margin-top: 0;
  color: #f4f4f4;
  line-height: 1.5;
  cursor: default;
}

/*----------- END OF REQUIREMENTS MODAL-----------*/

@media (max-width: 480px) {
  .radio-box{
    flex-direction: column;
  }
}
