/* ==========================================================================
   ph-pool-heat-pumps.css
   All rules scoped under .ph-hp-content
   Fonts: Rajdhani (headings), Lato (body)
   ========================================================================== */

/* ==========================================================================
   GLOBAL
   ========================================================================== */

.ph-hp-content {
    font-family: "Lato", sans-serif;
    color: #4b5563;
    line-height: 1.75;
}

.ph-hp-content * {
    box-sizing: border-box;
}

.ph-hp-content h1,
.ph-hp-content h2 {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    margin-top: 0;
}

.ph-hp-content h1 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #1d439c;
    margin-bottom: 0.5rem;
}

.ph-hp-content h2 {
    font-size: clamp(1.85rem, 2.4vw, 2.3rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: #333;
}

.ph-hp-content h3 {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: #555;
}

.ph-hp-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 1rem;
}

.ph-hp-content a {
    color: #1d439c;
}

.ph-hp-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ph-hp-content .ph-hp-section {
    padding: 72px 0;
}

.ph-hp-content .ph-hp-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 24px;
}


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

.ph-hp-content .ph-hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72em 1.9em;
    border-radius: 999px;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ph-hp-content .ph-hp-btn--primary {
    background: #1d439c;
    color: #fff;
    border: 2px solid #feb415;
}

.ph-hp-content .ph-hp-btn--primary:hover {
    background: #feb415;
    color: #1d439c;
    border-color: #1d439c;
    text-decoration: none;
}

.ph-hp-content .ph-hp-btn--outline-dark {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.ph-hp-content .ph-hp-btn--outline-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: #fff;
}

.ph-hp-content .ph-hp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.ph-hp-content .ph-hp-buttons--center {
    justify-content: center;
    margin: 0;
}


/* ==========================================================================
   HERO — light (logo + form card)
   ========================================================================== */

.ph-hp-content .ph-hp-hero {
    position: relative;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(8, 19, 44, 0.55) 0%, rgba(8, 19, 44, 0.7) 100%),
        url("https://poolheating.com.au/wp-content/uploads/2022/07/landing-hero.jpg") center / cover no-repeat;
}

.ph-hp-content .ph-hp-hero .ph-hp-container {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

.ph-hp-content .ph-hp-hero__left {
    flex: 0 0 50%;
    max-width: 50%;
}

.ph-hp-content .ph-hp-hero-logo {
    max-width: 420px;
}

.ph-hp-content .ph-hp-hero__right {
    flex: 0 0 50%;
    max-width: 50%;
}

.ph-hp-content .ph-hp-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: -1.4rem;
    transform: translateX(-50%);
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: #1d439c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(29, 67, 156, 0.3);
}

.ph-hp-content .ph-hp-scroll-cue:hover {
    background: #feb415;
    color: #1d439c;
}


/* ==========================================================================
   FORM CARD
   ========================================================================== */

.ph-hp-content .ph-hp-form-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.ph-hp-content .ph-hp-form-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* GravityForms inside the card */
.ph-hp-content .ph-hp-form-card input[type="text"],
.ph-hp-content .ph-hp-form-card input[type="email"],
.ph-hp-content .ph-hp-form-card input[type="tel"],
.ph-hp-content .ph-hp-form-card textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.ph-hp-content .ph-hp-form-card input[type="submit"],
.ph-hp-content .ph-hp-form-card .gform_button {
    width: 100%;
    padding: 0.75rem;
    background: #1d439c;
    color: #fff;
    border: 2px solid #feb415;
    border-radius: 999px;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.ph-hp-content .ph-hp-form-card input[type="submit"]:hover,
.ph-hp-content .ph-hp-form-card .gform_button:hover {
    background: #feb415;
    color: #1d439c;
}


/* ==========================================================================
   DARK SPECIALISTS CARD
   ========================================================================== */

.ph-hp-content .ph-hp-dark-card {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border-radius: 1.75rem;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ph-hp-content .ph-hp-dark-card .ph-hp-content-col {
    flex: 0 0 55%;
    max-width: 55%;
}

.ph-hp-content .ph-hp-dark-card h2 {
    color: #feb415;
}

.ph-hp-content .ph-hp-dark-card h3 {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    font-weight: 600;
}

.ph-hp-content .ph-hp-tagline {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #feb415;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.ph-hp-content .ph-hp-dark-card p {
    color: rgba(255, 255, 255, 0.78);
}

.ph-hp-content .ph-hp-icon-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ph-hp-content .ph-hp-icon-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    border-left: 3px solid #feb415;
}

.ph-hp-content .ph-hp-icon {
    width: 2rem;
    min-width: 2rem;
    text-align: center;
    font-size: 1.25rem;
    color: #feb415;
}

.ph-hp-content .ph-hp-icon-text {
    font-family: "Rajdhani", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #e2e8f0;
    letter-spacing: 0.04em;
}


/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.ph-hp-content .ph-hp-cta-banner {
    background: #1d439c;
    text-align: center;
}

.ph-hp-content .ph-hp-cta-banner h2 {
    color: #feb415;
    text-align: center;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   FEATURE ROWS
   ========================================================================== */

.ph-hp-content .ph-hp-features-stack {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.ph-hp-content .ph-hp-feature-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.ph-hp-content .ph-hp-feature-content {
    flex: 1;
}

.ph-hp-content .ph-hp-feature-img {
    flex: 1;
}

.ph-hp-content .ph-hp-feature-img img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.ph-hp-content .ph-hp-feature-content h2 {
    color: #1d439c;
}


/* ==========================================================================
   TESTIMONIAL
   ========================================================================== */

.ph-hp-content .ph-hp-testimonial {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.ph-hp-content .ph-hp-stars {
    font-size: 1.5rem;
    color: #feb415;
    margin: 0 0 1rem;
    letter-spacing: 0.15em;
}

.ph-hp-content .ph-hp-testimonial blockquote {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4b5563;
    font-style: italic;
}

.ph-hp-content .ph-hp-testimonial cite {
    font-size: 0.9rem;
    color: #888;
    font-style: normal;
    font-weight: 600;
}


/* ==========================================================================
   GRAVITYFORMS — overrides inside the hero form card
   ========================================================================== */

.ph-hp-form-card .gform_wrapper {
    --gf-color-primary:         #1d439c;
    --gf-color-primary-darker:  #152f6e;
    --gf-color-primary-lighter: #2d5ab5;
    --gf-ctrl-btn-bg-color:         #1d439c;
    --gf-ctrl-btn-bg-color-hover:   #feb415;
    --gf-ctrl-btn-color:            #fff;
    --gf-ctrl-btn-color-hover:      #0f172a;
    --gf-ctrl-border-color:         #cbd5e1;
    --gf-ctrl-label-color-primary:  #0f172a;
    font-family: "Lato", sans-serif;
}

/* ── Step indicator ─────────────────────────────────────────────────────── */
.ph-hp-form-card .gf_page_steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 1.5rem;
    padding: 0;
    border-bottom: none;
    position: relative;
}

.ph-hp-form-card .gf_page_steps::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.ph-hp-form-card .gf_step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.ph-hp-form-card .gf_step_number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.ph-hp-form-card .gf_step_label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
}

.ph-hp-form-card .gf_step_active .gf_step_number {
    background: #1d439c;
    color: #fff;
}

.ph-hp-form-card .gf_step_active .gf_step_label {
    color: #1d439c;
}

.ph-hp-form-card .gf_step_completed .gf_step_number {
    background: #22c55e;
    color: #fff;
}

.ph-hp-form-card .gf_step_completed .gf_step_label {
    color: #22c55e;
}

/* ── Field labels ───────────────────────────────────────────────────────── */
.ph-hp-form-card .gfield_label {
    font-family: "Lato", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.ph-hp-form-card .gfield_required {
    color: #ef4444;
    font-size: 0.75rem;
}

/* ── Radio options — card style ─────────────────────────────────────────── */
.ph-hp-form-card .gfield_radio,
.ph-hp-form-card .gfield_checkbox {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
}

.ph-hp-form-card .gfield_radio .gchoice,
.ph-hp-form-card .gfield_checkbox .gchoice {
    margin: 0;
}

.ph-hp-form-card .gfield_radio .gfield-choice-input,
.ph-hp-form-card .gfield_checkbox .gfield-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.ph-hp-form-card .gfield_radio .gfield-choice-input + label,
.ph-hp-form-card .gfield_checkbox .gfield-choice-input + label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.3;
    position: relative;
}

.ph-hp-form-card .gfield_radio .gfield-choice-input + label::before {
    content: "";
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.ph-hp-form-card .gfield_radio .gfield-choice-input:checked + label {
    border-color: #1d439c;
    background: #eff6ff;
    color: #0f172a;
    font-weight: 600;
}

.ph-hp-form-card .gfield_radio .gfield-choice-input:checked + label::before {
    border-color: #1d439c;
    background: #1d439c;
    box-shadow: inset 0 0 0 3px #fff;
}

.ph-hp-form-card .gfield_radio .gfield-choice-input + label:hover {
    border-color: #1d439c;
    background: #f0f7ff;
}

/* ── Text / select inputs ───────────────────────────────────────────────── */
.ph-hp-form-card .ginput_container input[type="text"],
.ph-hp-form-card .ginput_container input[type="email"],
.ph-hp-form-card .ginput_container input[type="tel"],
.ph-hp-form-card .ginput_container select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.ph-hp-form-card .ginput_container input:focus,
.ph-hp-form-card .ginput_container select:focus {
    border-color: #1d439c;
    box-shadow: 0 0 0 3px rgba(29, 67, 156, 0.12);
}

/* ── Navigation buttons ─────────────────────────────────────────────────── */
.ph-hp-form-card .gform_next_button,
.ph-hp-form-card .gform_previous_button,
.ph-hp-form-card .gform_button {
    font-family: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.7em 1.75em;
    border-radius: 999px;
    cursor: pointer;
    border: 2px solid #feb415;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ph-hp-form-card .gform_next_button,
.ph-hp-form-card .gform_button {
    background: #1d439c;
    color: #fff;
}

.ph-hp-form-card .gform_next_button:hover,
.ph-hp-form-card .gform_button:hover {
    background: #feb415;
    color: #0f172a;
    border-color: #1d439c;
}

.ph-hp-form-card .gform_previous_button {
    background: transparent;
    color: #4b5563;
    border-color: #e2e8f0;
    margin-right: 0.5rem;
}

.ph-hp-form-card .gform_previous_button:hover {
    border-color: #1d439c;
    color: #1d439c;
}

/* ── Page footer (button row) ───────────────────────────────────────────── */
.ph-hp-form-card .gform_page_footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* ── Validation errors ──────────────────────────────────────────────────── */
.ph-hp-form-card .gfield_validation_message,
.ph-hp-form-card .validation_message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    padding: 0;
    background: none;
    border: none;
}

.ph-hp-form-card .gfield_error .gfield_label {
    color: #ef4444;
}

.ph-hp-form-card .gfield_error input,
.ph-hp-form-card .gfield_error select {
    border-color: #ef4444 !important;
}

/* ── Confirmation message ───────────────────────────────────────────────── */
.ph-hp-form-card .gform_confirmation_wrapper {
    text-align: center;
    padding: 1rem 0;
}

.ph-hp-form-card .gform_confirmation_message h3 {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.5rem;
    color: #1d439c;
    margin-bottom: 0.5rem;
}

/* ── GF spacing resets ──────────────────────────────────────────────────── */
.ph-hp-form-card .gform_body {
    margin: 0;
}

.ph-hp-form-card .gfield {
    padding: 0 0 1rem;
    margin: 0;
}

.ph-hp-form-card .gfield:last-child {
    padding-bottom: 0;
}

/* ==========================================================================
   RESPONSIVE — max-width: 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    .ph-hp-content .ph-hp-hero .ph-hp-container {
        flex-direction: column;
    }

    .ph-hp-content .ph-hp-hero__left,
    .ph-hp-content .ph-hp-hero__right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ph-hp-content .ph-hp-hero__left {
        text-align: center;
    }

    .ph-hp-content .ph-hp-hero-logo {
        margin: 0 auto;
    }

    .ph-hp-content .ph-hp-dark-card {
        flex-direction: column;
        gap: 2rem;
    }

    .ph-hp-content .ph-hp-dark-card .ph-hp-content-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ph-hp-content .ph-hp-feature-row {
        flex-direction: column;
    }

    .ph-hp-content .ph-hp-feature-img img {
        margin: 0 auto;
    }
}


/* ==========================================================================
   RESPONSIVE — max-width: 767px
   ========================================================================== */

@media (max-width: 767px) {
    .ph-hp-content .ph-hp-section {
        padding: 48px 0;
    }

    .ph-hp-content .ph-hp-hero .ph-hp-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .ph-hp-content .ph-hp-dark-card {
        padding: 2rem 1.5rem;
    }

    .ph-hp-content .ph-hp-features-stack {
        gap: 2.5rem;
    }

    .ph-hp-content .ph-hp-buttons {
        flex-direction: column;
    }

    .ph-hp-content .ph-hp-btn {
        text-align: center;
        justify-content: center;
    }
}
