/* ===================================================== */
/*  File: styles.css - Page Width Restoration           */
/*  UUID: 6a9b3d4f-2c78-4e93-b6e2-8a5d7c12f4b9           */
/* ===================================================== */

/* General Page Layout */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  text-align: center;
}

/* Container - Restoring Previous Width */
.container {
  max-width: 600px;
  margin: 50px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: left;
}

/* Banner */
.banner-container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto 20px;
  text-align: center;
}

.banner-container img {
  width: 100%;
  height: auto;
  max-height: 191px;
  object-fit: cover;
}

/* Headings */
h1 {
  color: #333;
  text-align: center;
}

h2 {
  font-size: 20px;
  color: #444;
}

/* Paragraphs */
p {
  color: #555;
  font-size: 16px;
}

/* Warning Text */
.warning {
  color: #d9534f;
  font-weight: bold;
  text-align: center;
}

/* Support Status Banner */
/* #support-status => open/closed logic set by open-closed-logic.js */
#support-status {
  margin-top: 20px;
  padding: 15px;
  background: #e3f2fd;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.3;
  white-space: pre-line;
}

/* Button Container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

/* Button Base Class */
.button {
  display: inline-block;
  padding: 12px 20px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

/* Primary Button */
.primary-button {
  background-color: #007bff;
  color: white;
}

/* Neutral Button */
.neutral-button {
  background-color: #6c757d;
  color: white;
}

/* Disabled Button */
.disabled-button {
  background-color: #a0a0a0;
  color: #fff;
  cursor: not-allowed;
}

/* Hidden Elements */
.hidden {
  display: none;
}

/* ===================================================== */
/*  File: styles.css - Fixing Form Visibility           */
/*  UUID: 6a9b3d4f-2c78-4e93-b6e2-8a5d7c12f4b9           */
/* ===================================================== */

/* The toggling support form */
#support-form {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  text-align: left;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.form-group label {
  width: 140px;
  text-align: right;
  margin-right: 10px;
  font-weight: bold;
}

.field-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field-container input,
.field-container textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.field-container textarea {
  resize: vertical;
  min-height: 80px;
}

.invalid-field {
  background-color: #ffe5e5;
  border-color: #f5c2c2;
}

.inline-error {
  color: #d9534f;
  font-size: 14px;
  margin-top: 4px;
  display: none;
  text-align: left;
}

#phoneEmailBlankError {
  color: #d9534f;
  font-size: 14px;
  display: none;
  margin: 0 0 10px 140px;
  text-align: left;
}

/* The form's bottom buttons => same fixed size to avoid layout shifts */
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.form-buttons button {
  width: 180px;   /* fixed width */
  height: 50px;   /* fixed height */
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}

/* Tooltip for “Finish Request” if incomplete */
.form-buttons button[disabled]::after {
  content: "Please fill out the required fields first.";
  position: absolute;
  bottom: -40px;
  left: 0;
  background: #ffecec;
  color: #c00;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  display: none;
  width: 220px;
}

.form-buttons button[disabled]:hover::after {
  display: block;
}

.help-section {
  margin-top: 20px;
  padding: 15px;
  background: #e3f2fd;
  border-radius: 8px;
  text-align: center;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  padding: 15px;
  background: #f1f1f1;
  border-radius: 8px;
  text-align: left;
}

.contact-section, .system-info {
  width: 48%;
}

.system-info h2 {
  font-size: 16px;
  font-weight: normal;
  color: #666;
  margin-bottom: 10px;
}

.system-info p {
  font-size: 16px;
  color: #333;
  margin: 4px 0;
}

/* ===================================================== */
/*  File: styles.css - Ensuring Debug Mode Shows Form     */
/*  UUID: 6a9b3d4f-2c78-4e93-b6e2-8a5d7c12f4b9           */
/* ===================================================== */

/* Ensuring Debug Mode Shows Form */
.debug-mode #support-form {
  display: block;
  border: 2px dashed red;
}

/* ===================================================== */
/*  File: styles.css - Fixing Form Visibility Overrides   */
/*  (Updated without using !important)                  */
/* ===================================================== */

/* These rules are defined later in the stylesheet to ensure the support form and its contents are visible */

/* Ensure Support Form is Always Visible */
#support-form {
  display: block; /* Ensures form is always visible */
  max-width: 600px;
  background-color: #f9f9f9;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
  visibility: visible;
  height: auto;
}

/* Ensure Input Fields are Fully Displayed */
.form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.form-group label {
  width: 30%;
  text-align: right;
  font-weight: bold;
  margin-right: 10px;
}

.form-group input, 
.form-group textarea {
  width: 65%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  color: black;
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Ensure form contents are fully visible */
#support-form-contents {
  display: flex;
  flex-direction: column;
  gap: 10px;
  visibility: visible;
  opacity: 1;
  height: auto;
}

/************************************************************
 * End of file: styles.css
 ************************************************************/
