/* myflask/static/css/venue_form.css */

/* Added for GMB ) */

.custom-flash {
    background-color: white !important; /* White background */
    color: red !important;              /* Red text */
    border: 1px solid red;              /* Optional: red border */
  }
  
  /* Ensures the phone input + flag appear on one line */
  .intl-tel-input.allow-dropdown,
  .intl-tel-input.separate-dial-code {
      display: inline-block;
      width: 100%;
  }
  
  /* Make sure the input and flag container line up horizontally */
  .intl-tel-input .iti__flag-container {
      display: inline-block;
      vertical-align: middle;
  }
  
  /* The phone input itself also inline-block so the flag isn't above it */
  .intl-tel-input input[type="tel"] {
      display: inline-block;
      width: calc(100% - 60px); /* adjust as needed for the dial code width */
      vertical-align: middle;
  }
  
  /* Optionally ensure there's spacing for the dial code inside the input */
  .intl-tel-input .iti--separate-dial-code .iti__selected-flag {
      top: 0;  /* override some theme that might push it upward */
  }
  
  
  /* Drag-and-Drop Logo */
  #logo-dropzone {
      border: 2px dashed #aaa;
      padding: 20px;
      text-align: center;
      cursor: pointer;
      transition: border-color 0.3s ease, background-color 0.3s ease;
  }
  
  #logo-dropzone.dragover {
      border-color: #0056b3;
      background-color: #e6f0ff;
  }
  
  /* Logo Preview */
  #logo-preview img {
      max-width: 200px;
      height: auto;
      border: 1px solid #ddd;
      padding: 5px;
      border-radius: 4px;
  }
  
  /* Minimalist Toggle Button */
  #minimalist-toggle {
      margin-bottom: 20px;
  }
  
  /* Ensure that disabled form controls have appropriate styling */
  form .form-control:disabled {
      background-color: #e9ecef;
      opacity: 1;
  }
  
  /* Highlight for found venues */
  .found-venues-highlight {
      border: 2px solid #198754; /* Green border */
      background-color: #e6ffe6; /* Light green background */
      transition: background-color 0.5s ease, border-color 0.5s ease;
  }
  
  /* ============================================================
     Custom Error Message Styling for Assistance Requests
     ============================================================ */
  .assistance-error {
    background-color: #f8d7da;   /* Light red background */
    color: #842029;              /* Dark red text */
    border: 1px solid #f5c2c7;   /* Red border */
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
  }
  
  
  /* ====================================== */
  /* DESKTOP-SPECIFIC RULES (min-width: 992px) */
  /* ====================================== */
  @media (min-width: 992px) {
    /* (1) Decrease the font-size of the enumerated choices in the GMB Network dropdown */
    .select2-dropdown-lg .select2-results__option {
      font-size: 0.95rem !important;
    }
    
    /* (3) Also adjust the selected value display in the GMB select box */
    #network-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
      font-size: 0.95rem !important;
    }
  }
  
  /* ====================================== */
  /* MOBILE-SPECIFIC RULES (max-width: 576px)  */
  /* ====================================== */
  @media (max-width: 576px) {
    /* (2) Increase the overall size of all Select2 containers for better tap accessibility */
    .select2-container--default .select2-selection--single {
      height: 50px !important;
      min-height: 50px !important;
      font-size: 1.3rem !important;  /* increased size for easier readability on mobile */
      padding: 0.6rem 1rem !important;
      line-height: 50px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
      font-size: 1.3rem !important;
      line-height: 50px !important;
    }
    
    /* Increase the dropdown option sizes */
    .select2-dropdown-lg .select2-results__option {
      font-size: 1.3rem !important;
      padding: 10px 1rem !important;
      min-height: auto !important;
      line-height: 1.4 !important;
    }
    .select2-dropdown-lg {
      font-size: 1.3rem !important;
    }
    
    /* Additionally, if any plain select elements are used (not wrapped by Select2) */
    #category,
    #inspired_titles,
    #inspired_subtitles,
    #timezone {
      font-size: 1.3rem !important;
      min-height: 50px !important;
      line-height: 1.4 !important;
    }
  }
  
  /* ===================== */
/* NEW MANDATORY FIELD STYLING */
/* ===================== */
.required-label {
  font-weight: 600;
  color: #d93025; /* Red-ish for required fields */
}

.required-label .text-danger {
  font-weight: bold;
  margin-left: 3px;
}

.mandatory-field input.form-control[required],
.mandatory-field select.form-select[required] 
.mandatory-field input.form-control[required]:focus,
.mandatory-field select.form-select[required]:focus {
  outline: none;
  box-shadow: 0 0 3px 2px rgba(217, 48, 37, 0.3);
}

/* Green border for valid mandatory fields */
.mandatory-field input.form-control:valid,
.mandatory-field select.form-select:valid {
  border: 2px solid #198754 !important;
}


/* Highlight the universal background image when its radio is checked */
.universal-bg-label input[type="radio"]:checked + .universal-bg-image {
  border: 3px solid #198754 !important;
}

/* Venue Steps Progress Bar */
.venue-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.venue-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  font-size: 13px;
  color: #888;
}
.venue-step .circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eee;
  color: #b40000;
  border: 2px solid #ff3333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
  transition: all .2s;
}
.venue-step.completed .circle {
  background: #4bb543;
  color: #fff;
  border: 2px solid #4bb543;
}
.venue-step.completed .circle i {
  font-size: 18px;
}
.venue-step.completed {
  color: #197d2d;
}
