/* Propertybuyer theme – calculator widget
 * Replicated from propertybuyer.com.au (buyers agency Sydney, Melbourne, Brisbane).
 * Brand: Gotham Pro body text; #02313a dark teal; #b9795d copper accent.
 */

/* -------- Propertybuyer brand variables (from site) -------- */
:root {
  --pb-dark: #02313a;        /* header/nav, primary dark */
  --pb-accent: #b9795d;      /* links, buttons, accents */
  --pb-accent-hover: #855743;
  --pb-secondary: #144048;   /* cards, secondary blocks */
  --pb-cream: #f5f1e9;       /* page background */
  --pb-text: #3b3939;
  --pb-border: #e3e3e3;
  --pb-muted: #959595;
}

/* -------- Fonts (Gotham Pro – matches propertybuyer.com.au) -------- */
@font-face {
  font-family: 'Gotham Pro';
  src:
    url('/fonts/gotham/Gotham%20Pro/gothampro.woff2') format('woff2'),
    url('/fonts/gotham/Gotham%20Pro/gothampro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src:
    url('/fonts/gotham/Gotham%20Pro/gothampro_light.woff2') format('woff2'),
    url('/fonts/gotham/Gotham%20Pro/gothampro_light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src:
    url('/fonts/gotham/Gotham%20Pro/gothampro_medium.woff2') format('woff2'),
    url('/fonts/gotham/Gotham%20Pro/gothampro_medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src:
    url('/fonts/gotham/Gotham%20Pro/gothampro_bold.woff2') format('woff2'),
    url('/fonts/gotham/Gotham%20Pro/gothampro_bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src:
    url('/fonts/gotham/Gotham%20Pro/gothampro_black.woff2') format('woff2'),
    url('/fonts/gotham/Gotham%20Pro/gothampro_black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src:
    url('/fonts/gotham/Gotham%20Pro/gothampro_italic.woff2') format('woff2'),
    url('/fonts/gotham/Gotham%20Pro/gothampro_italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Proyale – Propertybuyer heading font */
@font-face {
  font-family: 'Proyale';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://www.propertybuyer.com.au/hubfs/fonts/Proyale.woff') format('woff');
}

/* -------- Widget container (Propertybuyer body: 17px, 300, line-height 24px) -------- */
#madecomfy-calculator {
  margin: 0;
  padding: 0;
  background: transparent !important;
  font-family: 'Gotham Pro', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 24px;
}

/* Remove cream/beige from any inner wrapper the widget injects */
#madecomfy-calculator .mc-widget-form-card,
#madecomfy-calculator .mc-widget-wrap,
#madecomfy-calculator > div {
  background: transparent !important;
}

/* Links – site uses #b9795d, hover #855743, underline */
#madecomfy-calculator a {
  color: var(--pb-accent);
  text-decoration: underline;
}

#madecomfy-calculator a:hover {
  color: var(--pb-accent-hover);
  text-decoration: underline;
}
  
  /* Form card layout */
  #madecomfy-calculator .mc-widget-form-card {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    grid-column-gap: 24px;
    grid-row-gap: 24px;
  }
  
  /* Hide all steps by default */
  #madecomfy-calculator .mc-widget-wrap.form-step {
    display: none;
  }
  
  /* Widget title – Proyale, accent colour */
  #madecomfy-calculator .mc-widget-head {
    font-family: 'Proyale', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 140%;
    color: #b9795d;
    margin-bottom: 1rem;
  }
  
  /* Inputs wrapper */
  #madecomfy-calculator .mc-widget-inputs-wrapper {
    display: flex;
    flex-flow: column;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
  }
  
  /* Input fields – site-style borders */
  #madecomfy-calculator .mc-widget-field {
    border: 1px solid var(--pb-border);
    background-color: #fff;
    color: #333;
    font-family: 'Gotham Pro', sans-serif;
    font-size: 1rem;
    padding: 14px;
    margin-bottom: 0;
    border-radius: 4px;
    height: auto;
  }
  
  #madecomfy-calculator .mc-widget-field:focus {
    outline: none;
    border: 1px solid var(--pb-dark);
  }
  
  /* Beds count wrapper */
  #madecomfy-calculator .beds-count-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--pb-border);
    border-radius: 4px;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
    background-color: #fff;
  }
  
  /* Bed text wrapper */
  #madecomfy-calculator .bed-text-wrapper {
    display: flex;
    flex-direction: row;
  }
  
  /* Bed counter – hover uses dark teal like site nav */
  #madecomfy-calculator .bed-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--pb-border);
    border-radius: 4px;
    transition: background-color 0.3s ease-out;
  }

  #madecomfy-calculator .bed-counter:hover {
    background-color: var(--pb-dark);
    color: #fff;
  }
  
  /* Bed count display */
  #madecomfy-calculator #bed-count-display {
    margin-right: 4px;
    font-weight: 400;
  }
  
  /* Icon colour – accent */
  #madecomfy-calculator .icon-embed-xsmall {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--pb-accent);
  }
  
  /* General widget text */
  #madecomfy-calculator .mc-widget-text {
    font-size: 1rem;
    vertical-align: middle;
  }
  
  /* Spacer */
  #madecomfy-calculator .spacer-small {
    height: 10px;
  }
  
  /* Card bottom styling */
  #madecomfy-calculator .mc-widget-card-bottom {
    text-align: center;
    margin-top: 1rem;
  }
  
  /* Button wrapper */
  #madecomfy-calculator .widget-button-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  /* Primary button – site .rv-contact-nav-button: border 1px #b9795d, hover bg #b9795d, border-radius 6px */
  #madecomfy-calculator .widget-button {
    font-family: 'Gotham Pro', sans-serif;
    border-radius: 6px;
    display: inline-block;
    text-transform: uppercase;
    background: var(--pb-accent);
    color: #fff;
    padding: 0.75rem 3rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.3s ease-out, color 0.3s ease-out;
    border: 1px solid var(--pb-accent);
  }

  #madecomfy-calculator .widget-button:hover {
    background: var(--pb-dark);
    color: #fff;
    border: 1px solid var(--pb-dark);
  }
  
  /* Back button styling */
  #madecomfy-calculator .back-btn {
    background-color: transparent;
    padding: 0;
    border: none;
    color: #000;
    display: inline-flex;
    align-items: center;
  }
  
  #madecomfy-calculator .back-btn:hover {
    color: var(--pb-accent);
    background-color: transparent;
    border: none;
  }
  
  /* Chevron icon in back button */
  #madecomfy-calculator .chevron-icon {
    margin-right: 0.5em;
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
  }
  
  /* Powered-by text */
  #madecomfy-calculator .powered-by-mc-widget {
    font-size: 0.75rem;
    color: var(--pb-text);
    text-align: left;
  }
  
  /* Always show the first step */
  #madecomfy-calculator .mc-widget-wrap[data-step="1"] {
    display: block;
  }
  
  /* Revenue display */
  #madecomfy-calculator .revenue-display {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0;
    text-align: left;
    color: var(--pb-text);
  }
  
  /* Custom dropdown – border aligned with site #e3e3e3, accent chevron */
  #madecomfy-calculator .custom-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 4px;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--pb-text);
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid var(--pb-border);
    padding: 14px 40px 14px 12px;
    font-family: 'Gotham Pro', sans-serif;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23b9795d' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
  }
  