/* =========================================================
   Apple Oil - Global Styles
   ========================================================= */

:root {
  --apple-green: #368b20;
  --apple-green-dark: #247018;
  --apple-green-light: #eaf2e6;

  --apple-red: #cf0000;
  --apple-red-dark: #a90000;

  --apple-text: #444444;
  --apple-muted: #6c6c6c;

  --apple-border: #dddddd;
  --apple-background: #f5f5f5;

  --apple-white: #ffffff;
  --apple-black: #000000;
}


/* =========================================================
   Base
   ========================================================= */

html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background: var(--apple-background);

  color: var(--apple-text);

  font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
  background: var(--apple-white);
  border-bottom: 1px solid #e5e5e5;
}

.site-header .navbar {
  min-height: 92px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-logo {
  display: block;

  width: auto;
  max-width: 190px;
  max-height: 70px;
}

.site-header .nav-link {
  margin-left: 25px;

  color: #444444;

  font-size: 15px;
  font-weight: 600;

  text-transform: uppercase;

  transition:
          color 0.15s ease,
          background-color 0.15s ease;
}

.site-header .nav-link:hover {
  color: var(--apple-green);
}


/* =========================================================
   Brand Bar
   ========================================================= */

.brand-bar {
  height: 6px;
  background: var(--apple-green);
}


/* =========================================================
   Main Content
   ========================================================= */

.site-main {
  flex: 1;

  padding-top: 20px;
  padding-bottom: 50px;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn-primary,
.next-button {
  border: 1px solid var(--apple-red);

  background: var(--apple-red);

  color: var(--apple-white);

  font-weight: 600;

  transition:
          background-color 0.15s ease,
          border-color 0.15s ease;
}

.btn-primary:hover,
.next-button:hover {
  border-color: var(--apple-red-dark);

  background: var(--apple-red-dark);

  color: var(--apple-white);
}

.btn-success {
  border-color: var(--apple-green);

  background: var(--apple-green);
}

.btn-success:hover {
  border-color: var(--apple-green-dark);

  background: var(--apple-green-dark);
}


/* =========================================================
   Forms
   ========================================================= */
.price-plan-form {
  max-width: 1000px;
}

.form-control,
.form-select {
  border: 1px solid #cfcfcf;
  border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--apple-green);

  box-shadow: 0 0 0 0.2rem rgba(54, 139, 32, 0.15);
}

.form-check-input:focus {
  border-color: var(--apple-green);

  box-shadow: 0 0 0 0.2rem rgba(54, 139, 32, 0.15);
}

.form-check-input:checked {
  border-color: var(--apple-green);

  background-color: var(--apple-green);
}


/* =========================================================
   Price Plans Page
   ========================================================= */

.price-plan-page {
  max-width: 1280px;
  margin: 25px auto;
  padding: 0 20px;
}

.intro-text,
.retail-price,
.instructions {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.55;
}

.account-access-container {
  max-width: 600px;
  margin: 40px auto 0;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.price-plan-intro {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.price-plan-intro p {
  /*margin-bottom: 1.5rem;*/
}

/*.price-plan-intro .retail-price {*/
/*  padding: 1rem 1.25rem;*/
/*  background-color: #f5f5f5;*/
/*  border-left: 4px solid #2e7d32;*/
/*  border-radius: 4px;*/
/*}*/

.price-plan-intro .retail-price strong {
  font-size: 0.95em;
}

.retail-price strong.green {
  color: var(--apple-green-dark);
}

.oil-price-plans-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.oil-price-plans-link:hover {
  opacity: 0.75;
}

/* =========================================================
   Price Plans Table
   ========================================================= */

.plan-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--apple-white);
}

.plan-table th,
.plan-table td {
  padding: 16px 14px;

  border: 1px solid #c7c7c7;

  text-align: center;

  vertical-align: middle;
}

.plan-table th {
  background: var(--apple-green);

  color: var(--apple-white);

  font-size: 18px;
  font-weight: 700;
}

.plan-table td {
  font-size: 16px;
  line-height: 1.4;
}

.plan-table .gallons-covered {
  text-align: center;
}

.plan-table .gallon-details {
  display: block;
  margin-top: 0.15em;
  font-size: 0.78em;
  line-height: 1.25;
}


/* Column widths */

.plan-table th:nth-child(1) {
  width: 15%;
}

.plan-table th:nth-child(2) {
  width: 28%;
}

.plan-table th:nth-child(3) {
  width: 19%;
}

.plan-table th:nth-child(4) {
  width: 15%;
}

.plan-table th:nth-child(5) {
  width: 14%;
}

.plan-table th:nth-child(6) {
  width: 9%;
}

.address-break {
  display: none;
}

.address-separator {
  display: inline;
}

@media (max-width: 768px) {
  .address-break {
    display: inline;
  }

  .address-separator {
    display: none;
  }
}

/* =========================================================
   Price Plan Name
   ========================================================= */

.plan-name {
  font-weight: 700;
}


/* =========================================================
   Price Plan Selection
   ========================================================= */

.selection-cell input[type="radio"] {
  width: 28px;
  height: 28px;

  cursor: pointer;

  accent-color: var(--apple-green);
}


/* =========================================================
   Button Row
   ========================================================= */

.button-row {
  display: flex;

  justify-content: flex-end;

  margin-top: 25px;
}

.next-button {
  min-width: 130px;

  padding: 12px 28px;

  border-radius: 4px;

  font-size: 22px;

  cursor: pointer;
}

/* =========================================================
   Enrollment Page
   ========================================================= */

.enrollment-page {
  max-width: 1000px;

  margin: 40px auto;

  padding: 20px;
}

/* =========================================================
   Tablet / Smaller Desktop
   ========================================================= */

@media (max-width: 900px) {

  .intro-text,
  .retail-price,
  .instructions {
    font-size: 20px;
  }

  .plan-table th,
  .plan-table td {
    font-size: 18px;
  }

  .table-responsive {
    overflow-x: auto;
  }

  .plan-table {
    min-width: 900px;
  }
}

/* =========================================================
   Mobile Header / Footer
   ========================================================= */

@media (max-width: 767px) {

  .site-header .navbar {
    min-height: 75px;
  }

  .site-logo {
    max-width: 150px;
    max-height: 55px;
  }

  .site-header .nav-link {
    margin-left: 0;

    padding: 12px 0;

    border-top: 1px solid #eeeeee;
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 35px;
  }
}


/* =========================================================
   Mobile Price Plans
   ========================================================= */

@media (max-width: 767px) {

  .price-plan-page {
    margin: 10px auto;
    padding: 0 14px;
  }

  .price-plan-page .table-responsive {
    overflow: visible;
  }

  .price-plan-page .plan-table {
    display: block;

    width: 100%;
    min-width: 0;

    margin-top: 15px;

    background: transparent;
  }

  .price-plan-page .plan-table thead {
    display: none;
  }

  .price-plan-page .plan-table tbody {
    display: block;
  }


  /* -----------------------------------------------------
     Each plan becomes a card
     ----------------------------------------------------- */

  .price-plan-page .plan-table tr {
    display: block;

    width: 100%;

    margin-bottom: 16px;

    border: 1px solid #cccccc;
    border-radius: 6px;

    overflow: hidden;

    background: var(--apple-white);

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }


  /* -----------------------------------------------------
     Each field becomes its own row
     ----------------------------------------------------- */

  .price-plan-page .plan-table td {
    display: block;

    width: 100%;

    padding: 11px 14px;

    border: 0;
    border-bottom: 1px solid #dddddd;

    text-align: left;

    font-size: 17px;
    line-height: 1.4;

    overflow-wrap: break-word;
  }


  /* -----------------------------------------------------
     Field label
     ----------------------------------------------------- */

  .price-plan-page .plan-table td::before {
    content: attr(data-label);

    display: block;

    margin-bottom: 4px;

    color: var(--apple-green-dark);

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
  }


  /* -----------------------------------------------------
     Plan name becomes card heading
     ----------------------------------------------------- */

  .price-plan-page .plan-table .plan-name {
    display: block;

    padding: 11px 14px;

    background: var(--apple-green);

    color: var(--apple-white);

    font-size: 19px;
    font-weight: 700;
  }

  .price-plan-page .plan-table .plan-name::before {
    display: none;
  }


  /* -----------------------------------------------------
     Remove line after last visible field
     ----------------------------------------------------- */

  .price-plan-page .plan-table td:nth-last-child(2) {
    border-bottom: 0;
  }


  /* -----------------------------------------------------
     Price Plan Intro Text
     ----------------------------------------------------- */

  .intro-text,
  .retail-price,
  .instructions {
    font-size: 17px;
    line-height: 1.4;
  }

  .intro-text {
    margin-bottom: 22px;
  }

  .retail-price {
    margin-bottom: 24px;
  }


  /* -----------------------------------------------------
     Next Button
     ----------------------------------------------------- */

  .button-row {
    justify-content: stretch;
  }

  .next-button {
    width: 100%;

    padding: 13px 20px;

    font-size: 19px;
  }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: auto;
  padding: 16px 0;
  background: var(--apple-black);
  color: var(--apple-white);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 11px;
  font-weight: 400;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  column-gap: 16px;
  align-items: center;
  width: 100%;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.site-footer .footer-right a {
  color: var(--apple-white);
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer .footer-right a:hover,
.site-footer .footer-right a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}


/* =========================================================
   Mobile Footer
   ========================================================= */


/* Mobile */
@media (max-width: 767px) {
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }
}




/* =========================================================
   Customer Information / Current Price Plan
   ========================================================= */
.customer-information,
.current-plan,
.available-plans {
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.customer-information {
  margin-bottom: 1.25rem;
  background: #f7f7f7;
}

.current-plan {
  margin-top: 0;
  margin-bottom: 1.25rem;
  background: var(--apple-white);
  font-size: 1.1rem;
}

.current-plan-expiring {
  background: #f7f7f7;
  color: var(--apple-muted);
}

.current-plan-expiring h2,
.current-plan-expiring p,
.current-plan-expiring p strong {
  color: var(--apple-muted);
}

.current-plan-expiring p .current-plan-name {
  color: #df6a5d;
}

.available-plans {
  margin-top: 0;
  background: var(--apple-white);
}

.customer-information h2,
.current-plan h2,
.available-plans h2 {
  margin: 0 0 1rem;
  color: var(--apple-text);
  font-size: 1.25rem;
  font-weight: 600;
}

.customer-information h2,
.current-plan.current-plan-expiring h2 {
  color: var(--apple-muted);
}

.customer-information-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 2fr;
  gap: 2rem;
  width: 100%;
}

.customer-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--apple-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.customer-value {
  color: var(--apple-muted);
  display: block;
  line-height: 1.4;
}

.current-plan p {
  margin: 0;
  line-height: 1.7;
}

.current-plan-name {
  color: #df6a5d;
}

@media (max-width: 991px) {
  .customer-information-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .customer-information-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .customer-information,
  .current-plan {
    padding: 1rem;
  }
}



/* =========================================================
   Site Phone
   ========================================================= */

.site-phone {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 19px;
  font-weight: 600;
}

.site-phone span {
  color: var(--apple-muted);
}

.site-phone a {
  color: var(--apple-green-dark);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.site-phone a:hover {
  color: var(--apple-red);
  text-decoration: underline;
}

@media (max-width: 575px) {
  .site-phone {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;

    font-size: 13px;
  }

  .site-phone a {
    font-size: 16px;
  }

}





/* -------------------------------------------------------
   Oil Price Plan Modal
------------------------------------------------------- */

.oil-price-plans-modal {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}


/* Header */
.oil-price-plans-modal .modal-header {
  padding: 1.25rem 1.75rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.oil-price-plans-modal .modal-title {
  margin: 0;
  color: #2E7D32;
  font-size: 1.5rem;
  font-weight: 700;
}


/* Body */

.oil-price-plans-modal .modal-body {
  padding: 2.5rem 4rem 3rem;
  line-height: 1.65;
  color: #3f3f3f;
}

.oil-price-plans-modal .modal-body-content {
  max-width: 900px;
  margin: 0 auto;
}

.price-plan-introduction {
  margin-bottom: 2rem;
}

.price-plan-introduction p {
  margin: 0 0 1.5rem;
}


/* Please Remember */
.price-plan-reminder {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background-color: #F1F8F2;
  border: 1px solid #D6E8D8;
  border-left: 5px solid #2E7D32;
  border-radius: 8px;
  line-height:1.3;
}

.reminder-icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: none;
}

.price-plan-reminder h3 {
  margin: 0 0 .5rem;
  color: #2E7D32;
  font-size: 1.2rem;
  font-weight: 700;
}

.price-plan-reminder p {
  margin: 0;
}

.price-plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  margin-top: 2rem;
  padding: 1.25rem 1.5rem;

  background-color: #F1F8F2;
  border: 1px solid #D6E8D8;
  border-left: 5px solid #2E7D32;
  border-radius: 6px;
}

.price-plan-footer p {
  margin: 0;
  font-size: 1.25rem;
}

.price-plan-footer a {
  color: #2E7D32;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.price-plan-footer a:hover {
  text-decoration: underline;
}

.price-plan-footer form {
  margin: 0;
  flex-shrink: 0;
}

.eligibility-notice .price-plan-footer p {
  color: var(--apple-green-dark);
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .price-plan-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Individual Plans */

.price-plan-description {
  padding: 2.25rem 0;
  border-top: 1px solid #DCEBDD;
}

.plan-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plan-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #2E7D32;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-label {
  margin-bottom: .15rem;
  color: #2E7D32;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.plan-heading h3 {
  margin: 0;
  color: #3f3f3f;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}


/* Indent description so it aligns with heading text */

.plan-content {
  padding-left: 60px;
}

.plan-content p {
  margin: 0 0 1.5rem;
}

.plan-content p:last-child {
  margin-bottom: 0;
}


/* Variable rate */

.variable-rate-description {
  padding-bottom: .5rem;
}


/* Footer */

.oil-price-plans-modal .modal-footer {
  padding: 1rem 1.75rem;
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
}

.oil-price-modal-close {
  padding: .5rem 1.25rem;
  background-color: #2E7D32;
  border: 1px solid #2E7D32;
  color: #ffffff;
  font-weight: 600;
}

.oil-price-modal-close:hover,
.oil-price-modal-close:focus {
  background-color: #256628;
  border-color: #256628;
  color: #ffffff;
}


/* Mobile */

@media (max-width: 768px) {

  .oil-price-plans-modal .modal-header {
    padding: 1rem 1.25rem;
  }

  .oil-price-plans-modal .modal-title {
    font-size: 1.25rem;
  }

  .oil-price-plans-modal .modal-body {
    padding: 1.5rem 1.25rem 2rem;
  }

  .price-plan-reminder {
    padding: 1.25rem;
  }

  .plan-heading {
    align-items: flex-start;
  }

  .plan-badge {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .plan-content {
    padding-left: 0;
  }

  .plan-heading h3 {
    font-size: 1.1rem;
  }
}

.close-button-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.close-button {
  min-width: 100px;
}

.plan-details-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.plan-details-link:hover {
  text-decoration: underline;
}

.current-plan-renewal-message {
  max-width: 80%;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-weight: 600;
  color: #1f6b3a;
  background-color: #f1f8f3;
  border-left: 4px solid #1f6b3a;
  border-right: 4px solid #1f6b3a;
  border-radius: 6px;
}

@media (max-width: 576px) {
  .current-plan-renewal-message {
    max-width: 100%;
    padding: 0.85rem 1rem;
  }
}

