/* ==========================
   FEEDBACK MODAL STYLING
   ========================== */

.feedback-modal-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 900;
    
    /* CENTERING MAGIC */
    display: flex;
    align-items: center;      /* Centers Vertically */
    justify-content: center;  /* Centers Horizontally */
    
    /* MOBILE ADJUSTMENT */
    padding: 15px;            /* Prevents modal from touching screen edges */
    box-sizing: border-box;   /* Ensures padding is calculated correctly */
}

.feedback-modal-wrapper {
    background: #fff;
    width: 95%;              /* Responsive width */
    max-width: 600px;        /* Stop growing on desktop */
    max-height: 90vh;        /* Prevent it from being taller than the screen */
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow-y: auto;        /* Scroll if content is too long */
    padding: 40px;
    animation: fadeInUp 0.3s ease;
    position: relative;      /* Helps with child positioning */
}
/* Title */
.feedback-modal-data h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #000;
}

.feedback-modal-data h2 span {
    color: #7A0000; /* dark red highlight */
}

.feedback-modal-data p {
    font-size: 14px;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 0 13px;
}

/* ==========================
   FORM ROWS + COLUMNS
   ========================== */

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.form-col {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing in specific edge cases */
}
/* Responsive: stack on small screens */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================
   INPUTS + LABELS
   ========================== */

.input-group {
    margin-bottom: 15px;
}

.input-group h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
    font-weight: 600;
}

.input-group h3 span {
    color: #7A0000;
    font-weight: bold;
}

.input-group input,
.input-group select,
.feedback-comment textarea {
    width: 100%;             /* Fill the column/container perfectly */
    box-sizing: border-box;  /* Ensures padding doesn't add to the width */
    padding: 11px;
    border-radius: 12px;
    border: 1px solid #333;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;    /* Ensures font matches the rest of the site */
}
.feedback-comment textarea{
        width: 95%;

}

.input-group select{
        width: 90%;

}

/* Hover + Focus Effects */
.input-group input:hover,
.input-group select:hover,
.feedback-comment textarea:hover,
.input-group input:focus,
.input-group select:focus,
.feedback-comment textarea:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #7A0000;
}

/* ==========================
   KEEP ME ANONYMOUS CHECKBOX
   ========================== */
.anonymous-checkbox {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.anonymous-checkbox input[type="checkbox"] {
    margin-right: 6px;
}

/* ==========================
   MESSAGE BOX
   ========================== */

.feedback-comment {
    position: relative;
    
}

.feedback-comment h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
    font-weight: 600;
}

.feedback-comment textarea {
    resize: none;
}

.char-counter {
    font-size: 12px;
    color: #555;
    text-align: right;
    margin-top: 4px;
    margin-right: 20px;
    font-style: italic;
}

/* ==========================
   AGREEMENT CHECKBOX
   ========================== */

.checkbox {
    align-items: flex-start;
    gap: 6px;
    margin: 15px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.checkbox .required {
  color: #C62828; /* or just 'red' */
  font-weight: bold;
}

.modal-content-scroll ol li {
    margin-left: 1.5rem; /* indent */
}


.checkbox span {
    color: #3e38eb; /* terms highlight */
    cursor: pointer;
    font-weight: 600;
}


.checkbox span:hover {
    text-decoration: underline;
}

/* ==========================
   BUTTONS
   ========================== */

.feedback-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.feedback-buttons .btn-back,
.feedback-buttons .btn-donate {
    flex: 1;
    padding: 10px 0;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Back Button */
.feedback-buttons .btn-back {
    background-color: #C62828;  /* same red as campaign back btn */
    color: #fff;
}

.feedback-buttons .btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(198, 40, 40, 0.3);
}

/* Submit Button */
.feedback-buttons .btn-donate {
    background-color: #4CAF50; /* green submit */
    color: #fff;
}

.feedback-buttons .btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.3);
}

/* Style for the error text itself */
        .error-text {
          display: none; /* Hidden by default */
          color: #b22222;
          font-size: 0.85rem;
          margin-top: 5px;
        }
        
        /* Style for the input box when it's invalid */
        input.is-invalid, 
        select.is-invalid, 
        textarea.is-invalid {
          border-color: #b22222 !important;
        }
        
/* ==========================
   ANIMATION
   ========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================
   RESPONSIVE ADJUSTMENTS
   ========================== */

/* Tablet and Mobile adjustments */
@media (max-width: 768px) {
    .feedback-modal-wrapper {
    }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .feedback-modal-wrapper {
        width: 100%;         /* Slightly tighter width */
    }

    /* Stack form rows vertically */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .feedback-modal-data h2 {
        font-size: 20px; /* Smaller title on mobile */
    }
    
    .feedback-buttons {
        flex-direction: column-reverse; /* Stack buttons, Back button on bottom */
        gap: 10px;
    }

    .feedback-buttons .btn-back,
    .feedback-buttons .btn-donate {
        width: 100%; /* Full width buttons */
        padding: 12px 0; /* Easier to tap */
    }
    
    .char-counter {
        margin-right: 2px; /* Re-align counter on small screens */
    }
}