/*
 * 50 Page dental software.
 * Load order: content-style.css -> css/10-content-patterns.css -> css/15-woocommerce.css -> css/20-page-patterns.css -> css/20-support-pages.css -> style.css -> css/pages/50-page-*.css.
 * Purpose: Practice Management Software page-only styles loaded only on page ID 47 / slug dental-software.
 * Related files: content-style.css holds tokens/base utilities; css/10-content-patterns.css holds reusable components; css/20-page-patterns.css and css/20-support-pages.css hold page-family overrides.
 * Scope: these rules were moved from style.css, css/20-page-patterns.css, and editor-style.css and target .dsw-* classes.
 */

/* ============================================================
   Dental Software
   ============================================================ */

.dsw-hero-section .dsw-hero-copy,
.editor-styles-wrapper .dsw-hero-copy {
    margin: 1.25rem 0 2.75rem;
    color: #000;
    font-size: 1.0625rem;
    line-height: 28px;
}

.dsw-hero-product-img,
.editor-styles-wrapper .dsw-hero-product-img {
    max-width: 100%;
    height: auto;
}

.dsw-s2-title,
.editor-styles-wrapper .dsw-s2-title {
    margin-bottom: 40px;
}

.dsw-card-icon,
.editor-styles-wrapper .dsw-card-icon {
    color: var(--global-palette3);
    display: inline-block;
    font-size: 3.25rem;
    margin-bottom: 16px;
}

/* ============================================================
   Dental Software — S8 Testimonials + Videos
   ============================================================ */

.dsw-s8-videos {
    margin-top: 40px;
}

.dsw-s8-videos .wp-block-embed {
    margin: 0;
}

/* ============================================================
   Dental Software — S9 CTA Cards
   ============================================================ */

.dsw-s9-title {
    margin-bottom: 40px;
}

.dsw-s9-cards .kt-row-column-wrap {
    gap: 32px;
}

/* dental-software-kadence / Mobile responsive horizontal media layout for Section 9 cards (Option B - Active) */
@media (max-width: 767px) {
    .dsw-s9-cards .kt-inside-inner-col {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto !important;
        column-gap: 20px !important;
        row-gap: 8px !important;
        align-items: center !important;
        text-align: left !important;
        padding: 16px !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .dsw-s9-cards .kt-inside-inner-col i.dsw-card-icon {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        font-size: 2.25rem !important;
        margin-bottom: 0 !important;
        align-self: center !important;
        color: var(--dmax-sky) !important;
    }

    .dsw-s9-cards .kt-inside-inner-col h4 {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        font-size: 1.15rem !important;
        text-align: left !important;
    }

    .dsw-s9-cards .kt-inside-inner-col .kb-buttons-wrap {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }
}

/* Option A: Swipable Horizontal Cards on Mobile (Commented out)
@media (max-width: 767px) {

    .dsw-s9-cards .kt-row-column-wrap {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 16px !important;
        padding: 16px 20px !important;
        scrollbar-width: none !important;
    }

    .dsw-s9-cards .kt-row-column-wrap::-webkit-scrollbar {
        display: none !important;
    }

    .dsw-s9-cards .kt-row-column-wrap>.wp-block-kadence-column {
        flex: 0 0 82% !important;
        width: 82% !important;
        scroll-snap-align: center !important;
        box-sizing: border-box !important;
    }
}
*/

/* ============================================================
   Dental Software — S10 Flow Cloud
   ============================================================ */

.dsw-flow-section .dmax-copy {
    margin-bottom: 24px;
}

.dsw-s10-img img {
    width: 100%;
    height: auto;
}

/* ============================================================
   Round-3 #60: fit the hero form above the fold
   ============================================================ */

/* Hero top padding was 135px (global .dmax-row:first-child clamp), which
   pushed the 8-field Gravity Form 101px below the 900px fold. Selector
   ties the global rule's specificity; this file loads later, so it wins. */
@media (min-width: 992px) {
    .page-id-47 .dsw-hero-section.dmax-row:first-child {
        padding-top: 60px;
        padding-bottom: 28px;
    }

    /* The 60px row padding leaves the form column starting 28px behind the
       transparent header (bottom y191; form top y163 at 1440x900). This
       page keeps #60's compact padding (its form is 792px tall; the full
       135px would push the tail to ~1030), so only the form column gets
       the extra offset to clear the header. Owner call 2026-10-07. */
    .page-id-47 .dsw-hero-section .kadence-columndsws1col2 .kt-inside-inner-col {
        padding-top: 40px;
    }

    /* Same consent-label treatment as the imaging hero (owner request
       2026-10-07). */
    .page-id-47 .dsw-hero-section .gfield--type-consent .gfield_consent_label,
    .page-id-47 .dsw-hero-section .gfield--type-consent .gfield_label {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Tighter GF field rhythm inside the hero only (form was 189px below the
   900px fold; these rules recover ~275px). 2026-10-09 (#12 form part,
   Oct-8 re-review): margins 5px -> 2px — production's row stride is
   ~15px against our ~25px; combined with the 48/52 column split the
   form tracks production's geometry. */
.page-id-47 .dsw-hero-section .gform_wrapper .gfield {
    margin-top: 2px;
    margin-bottom: 2px;
}

.page-id-47 .dsw-hero-section .gform_wrapper form,
.page-id-47 .dsw-hero-section .gform_wrapper {
    margin: 0;
}

.page-id-47 .dsw-hero-section .gform_wrapper .gfield input[type="text"],
.page-id-47 .dsw-hero-section .gform_wrapper .gfield input[type="email"],
.page-id-47 .dsw-hero-section .gform_wrapper .gfield input[type="tel"] {
    padding-top: 7px;
    padding-bottom: 7px;
}

/* SMS-consent legal copy: tighten leading without touching the text. */
.page-id-47 .dsw-hero-section .gform_wrapper .gfield_consent_label,
.page-id-47 .dsw-hero-section .gform_wrapper .gfield--width-full .gfield_description {
    line-height: 1.35;
    font-size: 0.82rem;
}

/* 2026-10-09 (#12 form part, Oct-8 re-review): same chrome zeroing the
   imaging hero got (v1.0.51) — the wrapper's 20px padding comes from the
   house `.survey_wrapper` card rule (this form's markup carries that
   class), and the submit footer's 16px bottom padding + 6px top margin
   come from Gravity Forms' theme CSS. Zeroing the tail recovers 42px.
   Top padding stays: it is part of the transparent-header clearance
   (heading top sits exactly at the overlay's bottom edge; see the 40px
   column offset note above). >=992px only; mobile keeps the airy
   defaults. */
@media (min-width: 992px) {
    .page-id-47 .dsw-hero-section .gform_wrapper {
        padding-bottom: 0;
    }

    .page-id-47 .dsw-hero-section .gform_wrapper .gform_footer,
    .page-id-47 .dsw-hero-section .gform_wrapper .gform_submit_button_container {
        padding-bottom: 0;
        margin-top: 0;
    }
}

/* ============================================================
   Round-4 #63 item 12: hero fits one viewport (follows #60)
   ============================================================ */

/* After the #60 form compaction the hero screenshot still crossed the
   900px fold by ~15px (section ~1.03x viewport). Cap the product image
   so column 1 no longer drives the section past one viewport. */
@media (min-width: 992px) {
    .page-id-47 .dsw-hero-product-img img {
        max-height: 320px;
        width: auto;
        object-fit: contain;
    }
}
