/* === DEBUG BANNER === */
/* body::before {
    content: "✅ CSS LOADED";
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: lime;
    color: black;
    padding: 4px 8px;
    z-index: 9999;
} */

/* ==== GLOBAL BASE STYLES ==== */
body {
    font-family: 'FigTree', sans-serif !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

html {
    background-color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

#react-entry-point,
#react-entry-point > div,
#_dash-app-content,
#_dash-app-content > div,
._dash-app-content,
.dash-bootstrap {
    background-color: #000000 !important;
}

:root {
    --form-control-height: 44px;
    --form-border-radius: 8px;
    --form-padding-vertical: 9px;
    --form-padding-horizontal: 14px;
}

html.app-loading body {
    opacity: 0;
}

html.app-loaded body {
    opacity: 1;
    transition: opacity 250ms ease-in;
}

.typing-text {
    opacity: 0;
    display: inline-block;
    animation: typingFade 900ms ease-out forwards;
}

@keyframes typingFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.landing-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.landing-button-link {
    display: inline-flex;
    text-decoration: none !important;
}

.landing-button-link:focus,
.landing-button-link:hover,
.landing-button-link:active {
    text-decoration: none !important;
}

.recent-submissions-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
    min-height: 28px;
    text-align: center;
    width: 100%;
    padding: 0 16px;
}

.recent-submissions-text {
    color: #FFFFFF;
    opacity: 0;
    animation: bannerFade 5s ease-in-out forwards;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.recent-submissions-text.banner-fade {
    animation: bannerFade 5s ease-in-out forwards;
}

@keyframes bannerFade {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-field-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    margin-bottom: 24px;
}

.form-field-column .custom-input-wrapper,
.form-field-column .dropdown-wrapper,
.form-field-column .radio-wrapper {
    width: 100%;
}

@media (min-width: 768px) {
    .form-field-column {
        margin-bottom: 0;
    }
}

.form-field-column .dash-radio-items {
    width: 100%;
}

.field-spacing {
    height: 24px;
}

.contact-input-row {
    gap: 16px !important;
}

.contact-field-column {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .contact-input-row {
        gap: 8px !important;
    }

    .contact-field-column {
        margin-bottom: 8px;
    }
}

.radio-wrapper .dash-radio-items {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: stretch !important;
}

/* ==== LAYOUT CONTAINER ==== */
.container {
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 5px !important;
}

@media (max-width: 768px) {
    .container {
        padding: 5px !important;
    }
}

/* ==== BUTTON STYLING ==== */
.btn-success,
button.btn-success {
    background-color: #FF8800 !important;
    border-color: #FF8800 !important;
    color: #000000 !important;
    font-weight: bold !important;
}

/* ==== DROPDOWN / SELECT ==== */
.Select-control {
    background-color: #222 !important;
    border: 1px solid #FF8800 !important;
    color: #F8F8F8 !important;
}

.Select-menu-outer {
    background-color: #111 !important;
    color: #FF8800 !important;
    z-index: 9999 !important;
}

/* ==== INPUTS ==== */
input[type="text"],
input[type="number"],
input[type="email"],
input.custom-input {
    background-color: #222 !important;
    color: #F8F8F8 !important;
    border: 2px solid #FF8800 !important;
    border-radius: var(--form-border-radius) !important;
    padding: 8px !important;
    width: 100% !important;
}

/* Wrapper-based input targeting */
.custom-input-wrapper input[type="number"],
.custom-input-wrapper input[type="text"],
.custom-input-wrapper input[type="email"] {
    background-color: #222 !important;
    color: #FF8800 !important;
    border: 2px solid #FF8800 !important;
    padding: var(--form-padding-vertical) var(--form-padding-horizontal) !important;
    border-radius: var(--form-border-radius) !important;
    width: 100% !important;
    min-height: var(--form-control-height) !important;
    line-height: 1.4 !important;
}

/* ==== LABELS ==== */
label,
.form-label {
    color: #F8F8F8 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

/* ==== RADIO BUTTON GROUP ==== */
.radio-wrapper .dash-radio-items label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--form-padding-vertical) 16px !important;
    min-height: var(--form-control-height) !important;
    margin: 0 8px 0 0 !important;
    background-color: #222 !important;
    border: 2px solid #FF8800 !important;
    border-radius: var(--form-border-radius) !important;
    color: #F8F8F8 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease !important;
}

.radio-wrapper .dash-radio-items input[type="radio"]:checked {
    accent-color: #FF8800 !important;
}

.radio-wrapper .dash-radio-items input[type="radio"]:checked + label,
.radio-wrapper .dash-radio-items input[type="radio"]:checked ~ label {
    background-color: #FF8800 !important;
    color: black !important;
    font-weight: bold !important;
}

/* ==== DROPDOWN WRAPPER ==== */
.dropdown-wrapper .Select-control {
    background-color: #222 !important;
    border: 2px solid #FF8800 !important;
    color: #FF8800 !important;
    border-radius: var(--form-border-radius) !important;
    min-height: var(--form-control-height) !important;
    height: var(--form-control-height) !important;
    padding-left: var(--form-padding-horizontal) !important;
    padding-right: calc(var(--form-padding-horizontal) + 56px) !important;
    display: block !important;
    position: relative !important;
}

.dropdown-wrapper .Select-menu-outer {
    background-color: #111 !important;
    color: #FF8800 !important;
}

.dropdown-wrapper .Select-control .Select-value,
.dropdown-wrapper .Select-control .Select-placeholder {
    display: flex !important;
    align-items: center !important;
    height: var(--form-control-height) !important;
    line-height: 1.4 !important;
}

.dropdown-wrapper .Select-control .Select-input,
.dropdown-wrapper .Select-control .Select-input > input {
    height: var(--form-control-height) !important;
    line-height: var(--form-control-height) !important;
    padding: 0 !important;
}

.dropdown-wrapper .Select-control .Select-clear-zone,
.dropdown-wrapper .Select-control .Select-arrow-zone {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
}

.dropdown-wrapper .Select-control .Select-clear-zone {
    right: 36px !important;
}

.dropdown-wrapper .Select-control .Select-arrow-zone {
    right: 4px !important;
}

.dropdown-suburb .Select-control {
    padding-right: calc(var(--form-padding-horizontal) + 32px) !important;
}

.dropdown-suburb .Select-control .Select-arrow-zone {
    display: none !important;
}

.dropdown-suburb .Select-control .Select-clear-zone {
    right: 4px !important;
}

/* ==== PLOTLY GRAPH AREA ==== */
.js-plotly-plot .plotly {
    background-color: #222 !important;
    color: #F8F8F8 !important;
}

/* Fix for selected radio styling */
input[type="radio"]:checked + span {
    background-color: #FF8800 !important;
    color: #000 !important;
    font-weight: bold !important;
    border-color: #FF8800 !important;
}

.radio-box-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Full block clickable radio buttons */
.radio-expanded label {
    display: block !important;
    padding: 16px !important;
    margin: 6px 0 !important;
    border: 2px solid #FF8800 !important;
    border-radius: 10px !important;
    background-color: #222 !important;
    color: #F8F8F8 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out !important;
}

.radio-expanded input[type="radio"] {
    display: none !important;
}

.radio-expanded input[type="radio"]:checked + label {
    background-color: #FF8800 !important;
    color: #000 !important;
    font-weight: bold !important;
}

/* Fix dropdown option text color */
div.VirtualizedSelectOption {
    color: #FF8800 !important;
}

div.VirtualizedSelectFocusedOption {
    background-color: #222 !important;
    color: #FF8800 !important;
}

/* Selected value in the dropdown input box */
div.Select-value,
div.Select-value-label {
    color: #FF8800 !important;
}

/* Fallback for newer Dash/React-Select class names */
div.Select__menu,
div.Select__option,
div.Select__single-value {
    color: #FF8800 !important;
    background-color: #111 !important;
}

/* Highlight selected item in dropdown menu */
.Select-option.is-selected,
.Select__option--is-selected {
    background-color: #222 !important;
    color: #FF8800 !important;
}

/* Force selected dropdown value and menu options to orange */
.Select div,
.Select div div,
.Select div div div,
.Select-value-label,
.Select__single-value {
    color: #FF8800 !important;
}

/* Hover/focus state */
.Select-option.is-focused,
.Select__option--is-focused {
    color: #FF8800 !important;
    background-color: #111 !important;
}

/* === DROPDOWN MENU OPTIONS === */
.Select-option,
.Select__option {
    color: #FF8800 !important;
    background-color: #111 !important;
}

/* === SELECTED OPTION IN MENU === */
.Select-option.is-selected,
.Select__option--is-selected {
    background-color: #111 !important;
    color: #FF8800 !important;
    font-weight: bold !important;
}

/* === SELECTED VALUE SHOWN IN DROPDOWN BOX === */
.Select .Select-value,
.Select .Select-value-label,
.Select .Select-placeholder,
.Select .Select-control,
.Select__single-value {
    color: #FF8800 !important;
}

/* Extra specificity for good measure */
.Select-control .Select-value-label {
    color: #FF8800 !important;
}

.Select-control,
.Select--single > .Select-control .Select-value,
.Select--single > .Select-control .Select-value .Select-value-label,
.Select__control,
.Select__single-value {
    color: #FF8800 !important;
    background-color: #222 !important;
}

.Select-value-label,
div[class*="Select__single-value"] {
    color: #FF8800 !important;
}

.Select-control span,
.Select-value span,
.Select-value-label span {
    color: #FF8800 !important;
}

/* ==== UNIFY PLACEHOLDER COLOR ==== */
input::placeholder,
input::-webkit-input-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder,
input:-moz-placeholder,
.Select-placeholder,
.Select__placeholder {
    color: #aaa !important;
    opacity: 1 !important;
}

.Select-control .Select-placeholder,
.Select__control .Select__placeholder,
div[class*="Select-placeholder"] {
    color: #aaa !important;
    opacity: 1 !important;
}

/* ==== GRAPH + RESULTS LAYOUT ==== */

/* Default: Grid for desktop + landscape */
.graph-results-container {
  display: grid !important;
  grid-template-columns: 66% 34%;
  gap: 20px;
  align-items: start;
  width: 100%;
}

/* Graph and results content */
#graph-column,
#results-column {
  width: 100%;
  min-height: 300px;
}

/* Stack ONLY on portrait phones */
@media (max-width: 600px) and (orientation: portrait) {
  .graph-results-container {
    display: block !important;
  }
  #graph-column,
  #results-column {
    width: 100% !important;
    margin-bottom: 20px;
  }
}

.graph-results-row {
  overflow-y: auto;
}

.info-icon {
    cursor: pointer;
    color: #FF8800;
    font-weight: 600;
}

.rate-ask-value {
    font-size: 55px;
    font-weight: 700;
}

.summary-card,
.action-card {
    background-color: #0f0f0f;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.graph-card {
    min-height: 420px;
}

.rate-card {
    align-items: center;
    text-align: center;
}

.rate-card .rate-ask-value {
    width: 100%;
}

.actions-row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.actions-row-flex .action-wrapper {
    flex: 1 1 320px;
    max-width: 340px;
}

.actions-row-flex .action-card {
    width: 100%;
}


.actions-row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.actions-row-flex .action-wrapper {
    flex: 1 1 320px;
    max-width: 360px;
    display: flex;
}

.actions-row-flex .action-card {
    width: 100%;
}

.summary-card {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}

.action-card .btn {
    text-transform: none;
}

@media screen and (max-width: 768px) {
    .rate-ask-value {
        font-size: 42px;
    }
}
