/* =========================================================
CAPITAL CITY FLIGHT GROUP
Flight Circle Public Shop Styling
========================================================= */

:root {
  --navy: #062846;
  --gold: #fdbd32;
  --text: #10263f;
  --border: #dce3ea;
  --light: #f5f7fa;
}

/* =========================================================
PAGE
========================================================= */

html,
body {
  background: var(--navy) !important;
  color: var(--text) !important;
  min-height: 100% !important;
}

/* =========================================================
MAIN WHITE CARD
========================================================= */

body > .container:first-of-type {
  background: #ffffff !important;

  width: calc(100% - 80px) !important;
  max-width: 860px !important;

  margin: 30px auto 0 !important;
  padding: 45px 42px 50px !important;

  border-radius: 12px !important;

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.24) !important;

  min-height: auto !important;
}

/* =========================================================
CAPITAL CITY FLIGHT GROUP LOGO

Adds logo above Discovery Flight without changing
the existing Flight Circle form structure.
========================================================= */

body > .container:first-of-type::before {
  content: "" !important;

  display: block !important;

  width: 100% !important;
  max-width: 450px !important;
  height: 105px !important;

  margin: 0 auto 35px !important;

  background-image:
    url("https://capitalcityflightgroup.github.io/flightcircle-styles/capital-city-flight-group-logo.jpg") !important;

  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* =========================================================
FIX FLIGHT CIRCLE / BOOTSTRAP WIDTH
========================================================= */

body > .container:first-of-type > form {
  width: 100% !important;
  max-width: none !important;
}

body > .container:first-of-type .row {
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  display: block !important;
}

body > .container:first-of-type .row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;

  float: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================================================
ORDER FORM
========================================================= */

#order_form {
  width: 100% !important;
  max-width: none !important;
}

#order_form > .row {
  width: 100% !important;
}

#order_form .description {
  width: 100% !important;
  max-width: 100% !important;
}

/* =========================================================
TYPOGRAPHY
========================================================= */

body,
input,
select,
textarea,
button {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif !important;
}

body {
  font-size: 15px !important;
  line-height: 1.45 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text) !important;
  font-weight: 700 !important;
}

h1 {
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
}

h2 {
  font-size: 23px !important;
}

h3 {
  font-size: 19px !important;
}

p,
label,
td,
th {
  color: var(--text);
}

/* =========================================================
SECTION HEADINGS
========================================================= */

body > .container:first-of-type h1,
body > .container:first-of-type h2,
body > .container:first-of-type h3 {
  border-bottom: 1px solid #e7ebef;
  padding-bottom: 8px;
}

#order_form h2,
#order_form h3 {
  margin-top: 30px !important;
}

/* =========================================================
FORM CONTROLS
========================================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea,
.form-control {
  border: 1px solid #ccd6e0 !important;
  border-radius: 6px !important;

  box-shadow: none !important;

  padding: 8px 12px !important;

  background: #ffffff !important;
  color: var(--text) !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
.form-control {
  min-height: 36px;
}

textarea {
  min-height: 80px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--gold) !important;

  box-shadow:
    0 0 0 2px rgba(253, 189, 50, 0.18) !important;

  outline: none !important;
}

/* =========================================================
GOLD BUTTONS
========================================================= */

.btn-primary,
.btn-warning,
button.btn-primary,
button.btn-warning,
input.btn-primary,
input.btn-warning {
  background: var(--gold) !important;

  border-color: var(--gold) !important;

  color: #082541 !important;

  font-weight: 700 !important;

  border-radius: 7px !important;

  padding: 10px 18px !important;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15) !important;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease !important;
}

.btn-primary:hover,
.btn-warning:hover {
  filter: brightness(0.96);

  transform: translateY(-1px);

  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.18) !important;
}

.btn-primary:active,
.btn-warning:active {
  transform: translateY(0);
}

/* =========================================================
SUCCESS / CHECKOUT BUTTON
========================================================= */

.btn-success {
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* =========================================================
GO BACK BUTTON
========================================================= */

.btn-danger {
  border-radius: 6px !important;
  font-weight: 600 !important;
}

/* =========================================================
CALENDAR
========================================================= */

.ui-datepicker,
.datepicker,
.datepicker-inline {
  width: 430px !important;
  max-width: 100% !important;
}

.ui-datepicker table,
.datepicker table {
  width: 100% !important;
  max-width: 430px !important;
}

.ui-datepicker td,
.ui-datepicker th,
.datepicker td,
.datepicker th {
  text-align: center !important;
}

/* =========================================================
ALERT / INFORMATION BOXES
========================================================= */

.alert {
  max-width: 100% !important;

  padding: 14px 16px !important;

  border-radius: 6px !important;
}

/* =========================================================
TABLES / ORDER SUMMARY
========================================================= */

table {
  border-collapse: collapse;
}

.table {
  width: 100% !important;
  max-width: 100% !important;
}

.table td,
.table th {
  vertical-align: middle !important;
}

/* =========================================================
LINKS INSIDE MAIN CARD
========================================================= */

body > .container:first-of-type a {
  color: #b47b00;
}

body > .container:first-of-type a:hover,
body > .container:first-of-type a:focus {
  color: #8d6000;
}

/* =========================================================
BUTTON SPACING
========================================================= */

#order_form .btn {
  margin-top: 6px;
}

/* =========================================================
FLIGHT CIRCLE FOOTER

Keep footer directly on navy background instead of
creating another white card.
========================================================= */

body > .container:not(:first-of-type) {
  background: transparent !important;

  width: calc(100% - 80px) !important;
  max-width: 860px !important;

  min-height: 0 !important;

  margin: 0 auto !important;

  padding: 28px 15px 35px !important;

  border-radius: 0 !important;

  box-shadow: none !important;

  color: #d8e1e9 !important;

  text-align: center !important;
}

/* Footer rows/columns should not create another card */

body > .container:not(:first-of-type) .row {
  width: 100% !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

body > .container:not(:first-of-type) [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;

  float: none !important;

  margin: 0 !important;

  padding: 0 !important;
}

/* Footer horizontal divider */

body > .container:not(:first-of-type) hr {
  border: 0 !important;

  border-top:
    1px solid rgba(255, 255, 255, 0.25) !important;

  margin: 0 0 20px !important;
}

/* ALL footer text must be readable */

body > .container:not(:first-of-type),
body > .container:not(:first-of-type) p,
body > .container:not(:first-of-type) span,
body > .container:not(:first-of-type) div,
body > .container:not(:first-of-type) small,
body > .container:not(:first-of-type) li {
  color: #d8e1e9 !important;
}

/* Footer links use Capital City gold */

body > .container:not(:first-of-type) a,
body > .container:not(:first-of-type) a:visited {
  color: var(--gold) !important;

  text-decoration: none !important;
}

body > .container:not(:first-of-type) a:hover,
body > .container:not(:first-of-type) a:focus {
  color: #ffffff !important;

  text-decoration: underline !important;
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 767px) {

  body > .container:first-of-type {
    width: calc(100% - 24px) !important;

    margin: 12px auto 0 !important;

    padding: 25px 20px 35px !important;

    border-radius: 9px !important;
  }

  /* Logo scales down automatically on phones */

  body > .container:first-of-type::before {
    width: 90% !important;
    max-width: 380px !important;
    height: 85px !important;

    margin: 0 auto 25px !important;

    background-size: contain !important;
  }

  h1 {
    font-size: 27px !important;
  }

  h2 {
    font-size: 21px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  body > .container:first-of-type .row {
    width: 100% !important;
  }

  body > .container:first-of-type .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;

    float: none !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ui-datepicker,
  .datepicker,
  .datepicker-inline,
  .ui-datepicker table,
  .datepicker table {
    width: 100% !important;
    max-width: 100% !important;
  }

  body > .container:not(:first-of-type) {
    width: calc(100% - 24px) !important;

    padding: 24px 8px 30px !important;

    font-size: 13px !important;
  }
}
