/* =========================================
   HOSTBACK.CSS
========================================= */

/* ===== Global Variables and Base Styles ===== */
:root {
  --font-title: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --color-primary: #14283d;
  --color-secondary: #34424f;
  --color-light: #eaeff4;
  --color-white: #ffffff;

  --color-accent-green: #94ddca;
  --color-accent-red: #f26a6c;
  --color-accent-yellow: #fae156;
  --color-accent-blue: #6ccdea;

  --text-title: #14283d;
  --text-light: #eaeff4;
  --text-body: #34424f;
  --text-inverse: #ffffff;

  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-light);
  color: var(--text-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--text-title);
  margin-top: 0;
}

/* ===== Title + Toggle Header ===== */
.hostback-toggle-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hostback-toggle-header img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
}

/* ===== Toggle Box Styling ===== */
.hostback-title-toggle-box {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin-top: 10px;
}

.hostback-title-toggle-box.show {
  max-height: 300px;
  opacity: 1;
  margin-bottom: 16px;
}

.hostback-title-toggle-box p {
  background: var(--color-white);
  border: 1px solid var(--color-accent-green);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.95em;
  color: var(--text-title);
  box-shadow: var(--shadow);
  margin: 0;
  line-height: 1.5;
}

/* ===== Hosting Plan Cards ===== */
.hb-customer-dash-hb-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.hb-customer-dash-hb-card:hover {
  transform: translateY(-4px);
}

.hb-customer-dash-hb-card .hb-customer-dash-hb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hb-customer-dash-hb-badge {
  padding: 4px 12px;
  font-size: 0.75em;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-light);
  color: var(--text-title);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hostback-5gb .hb-customer-dash-hb-badge { background: var(--color-accent-green); }
.hostback-10gb .hb-customer-dash-hb-badge { background: var(--color-accent-yellow); }
.hostback-20gb .hb-customer-dash-hb-badge { background: var(--color-accent-red); color: var(--text-inverse); }
.hostback-unlimited .hb-customer-dash-hb-badge { background: var(--color-primary); color: var(--text-light); }

.hb-customer-dash-hb-card .plan-price {
  font-size: 2em;
  font-weight: bold;
  margin: 0 0 12px;
}

.hb-customer-dash-hb-card .plan-note {
  font-size: 0.95em;
  margin-bottom: 16px;
}

.hb-customer-dash-hb-btn {
  background-color: var(--color-accent-green);
  color: var(--text-title);
  padding: 10px 20px;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  border: none;
}

.hb-customer-dash-hb-btn:hover {
  background-color: var(--color-accent-blue);
  color: var(--text-inverse);
  transform: scale(1.03);
}

/* ===== Add-On Boxes ===== */
.hb-customer-dash-addon-box {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.hb-customer-dash-addon-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hb-customer-dash-addon-content {
  flex: 1;
  min-width: 220px;
}

.hb-customer-dash-addon-content h3 {
  margin: 0 0 8px;
  font-size: 1.25em;
  font-family: var(--font-title);
  color: var(--text-title);
}

.hb-customer-dash-addon-content p {
  font-size: 0.95em;
  color: var(--text-body);
  margin: 0;
}

.hb-customer-dash-addon-badge {
  margin-left: 8px;
  background: var(--color-accent-green);
  color: var(--text-title);
  padding: 2px 10px;
  font-size: 0.75em;
  border-radius: 999px;
  font-weight: bold;
  vertical-align: middle;
}

.hb-customer-dash-addon-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 120px;
  text-align: right;
}

.hb-customer-dash-addon-price {
  font-size: 1em;
  font-weight: bold;
  color: var(--text-title);
  margin-bottom: 10px;
}

.hb-customer-dash-addon-button {
  display: inline-block;
  background: var(--color-accent-blue);
  color: var(--text-inverse);
  padding: 10px 16px;
  font-size: 0.85em;
  font-weight: bold;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hb-customer-dash-addon-button:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

/* Responsive Add-on Box Layout */
@media (max-width: 600px) {
  .hb-customer-dash-addon-box {
    flex-direction: column;
    align-items: stretch;
  }

  .hb-customer-dash-addon-actions {
    align-items: flex-start;
    text-align: left;
  }
}

/* ======================================================
   Polished Flex Feature Boxes
======================================================= */

.hostback-flex-box {
  display: flex;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hostback-flex-box:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.hostback-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 4px;
}

.hostback-content {
  flex: 1;
  min-width: 220px;
}

.hostback-content h3 {
  margin: 0 0 8px;
  font-size: 1.35em;
  font-family: var(--font-title);
  color: var(--text-title);
  line-height: 1.2;
}

.hostback-content p {
  margin: 0;
  font-size: 0.95em;
  color: var(--text-body);
  line-height: 1.6;
}

.hostback-button {
  min-width: 160px;
  text-align: right;
}

.hostback-cta-button {
  display: inline-block;
  background: var(--color-accent-green);
  color: var(--text-title);
  padding: 10px 18px;
  font-size: 0.85em;
  font-weight: bold;
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.hostback-cta-button:hover {
  background: var(--color-accent-blue);
  color: var(--text-inverse);
  transform: scale(1.04);
}

/* Responsive: Stack layout */
@media screen and (max-width: 600px) {
  .hostback-flex-box {
    flex-direction: column;
    text-align: left;
  }

  .hostback-button {
    width: 100%;
    text-align: left;
    margin-top: 16px;
  }
}

/* =======================================================
   Gravity Forms – Hostback Dashboard Styling
   Scoped to forms with `.hb-form` and/or `.hb-customer-dash`
======================================================= */

/* Form Container */
.hb-form,
.hb-customer-dash .hb-form {
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 30px;
}

/* Headings */
.hb-form h2,
.hb-form h3,
.hb-form h4 {
  font-family: var(--font-title);
  color: var(--text-title);
  margin-bottom: 16px;
}

/* Labels */
.hb-form .gfield_label {
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 6px;
  display: block;
  font-size: 0.95em;
}

/* Inputs, Textareas, Selects */
.hb-form input[type="text"],
.hb-form input[type="email"],
.hb-form input[type="url"],
.hb-form input[type="tel"],
.hb-form input[type="number"],
.hb-form input[type="password"],
.hb-form select,
.hb-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  font-family: var(--font-body);
  color: var(--text-title);
  border: 1px solid #ccd4dc;
  border-radius: var(--radius);
  background: #f9f9fb;
  margin-bottom: 16px;
  transition: border 0.2s ease;
}

.hb-form input:focus,
.hb-form textarea:focus,
.hb-form select:focus {
  outline: none;
  border-color: var(--color-accent-green);
  background: var(--color-white);
}

/* Checkboxes & Radios */
.hb-form input[type="checkbox"],
.hb-form input[type="radio"] {
  margin-right: 8px;
}

.hb-form .gfield_checkbox li,
.hb-form .gfield_radio li {
  margin-bottom: 10px;
  font-size: 0.95em;
}

/* Section Breaks */
.hb-form .gsection {
  margin: 30px 0 20px;
  border-top: 1px solid var(--color-light);
  padding-top: 20px;
}

.hb-form .gsection_title {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-title);
}

/* Error messages */
.hb-form .gform_validation_errors {
  background: var(--color-accent-red);
  color: var(--text-inverse);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Validation message below fields */
.hb-form .gfield_description.validation_message {
  color: var(--color-accent-red);
  font-size: 0.85em;
  margin-top: 4px;
}

/* Submit Button */
.hb-form .gform_footer input[type="submit"],
.hb-form .gform_footer .button,
.hb-form .gform_page_footer input[type="submit"] {
  background: var(--color-accent-green);
  color: var(--text-title);
  padding: 12px 24px;
  font-size: 0.9em;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hb-form .gform_footer input[type="submit"]:hover,
.hb-form .gform_footer .button:hover,
.hb-form .gform_page_footer input[type="submit"]:hover {
  background: var(--color-accent-blue);
  color: var(--text-inverse);
}

/* Gravity Forms notices */
.hb-form .gform_confirmation_message {
  background: var(--color-accent-green);
  color: var(--text-title);
  padding: 14px;
  border-radius: var(--radius);
  font-weight: 500;
  margin-top: 20px;
  font-size: 0.95em;
}
/* Gravity Forms – Clean dropdown styling */
.hb-form select,
.hb-customer-dash .hb-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: var(--font-body);
  font-size: 1em;
  line-height: 1.0;
  color: var(--text-title);
  background-color: #f9f9fb;
  border: 1px solid #ccd4dc;
  border-radius: var(--radius);
  padding: 12px;
}

/* Focus state */
.hb-form select:focus,
.hb-customer-dash .hb-form select:focus {
  outline: none;
  border-color: var(--color-accent-green);
  background-color: var(--color-white);
}

/* Hide default arrow in older IE */
.hb-form select::-ms-expand,
.hb-customer-dash .hb-form select::-ms-expand {
  display: none;
}

/* ===============================
   Gravity Forms Submit Buttons (1–16)
=============================== */

#gform_submit_button_1,
#gform_submit_button_2,
#gform_submit_button_3,
#gform_submit_button_4,
#gform_submit_button_5,
#gform_submit_button_6,
#gform_submit_button_7,
#gform_submit_button_8,
#gform_submit_button_9,
#gform_submit_button_10,
#gform_submit_button_11,
#gform_submit_button_12,
#gform_submit_button_13,
#gform_submit_button_14,
#gform_submit_button_15,
#gform_submit_button_16 {
  background-color: var(--color-accent-green);
  color: var(--text-title);
  padding: 10px 20px;
  font-size: 0.85em;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
}

#gform_submit_button_1:hover,
#gform_submit_button_2:hover,
#gform_submit_button_3:hover,
#gform_submit_button_4:hover,
#gform_submit_button_5:hover,
#gform_submit_button_6:hover,
#gform_submit_button_7:hover,
#gform_submit_button_8:hover,
#gform_submit_button_9:hover,
#gform_submit_button_10:hover,
#gform_submit_button_11:hover,
#gform_submit_button_12:hover,
#gform_submit_button_13:hover,
#gform_submit_button_14:hover,
#gform_submit_button_15:hover,
#gform_submit_button_16:hover {
  background-color: var(--color-accent-blue);
  color: var(--text-inverse);
  transform: scale(1.03);
}