/*
 * KSW Product Line landing-page styles.
 * Scoped to .product-line-page so existing site pages are unaffected.
 */

.product-line-page .product-line-h1,
.product-line-page .product-line-h2,
.product-line-page .product-line-form-heading,
.product-line-page .product-line-section-heading,
.product-line-page .product-line-card-title {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.product-line-page .product-line-h1,
.product-line-page .product-line-h2,
.product-line-page .product-line-section-heading,
.product-line-page .product-line-card-title,
.product-line-page .product-line-card-title a {
    color: #013c94;
}

.product-line-page .product-line-h1 {
    line-height: 1;
    margin-bottom: 1rem;
}

.product-line-page .product-line-h2 {
    margin-bottom: 1.5rem;
}

.product-line-page .product-line-intro {
    font-size: 1.05rem;
    line-height: 1.7;
}

.product-line-page .product-line-form-wrap {
    background: #fff;
    border-top: 0.5rem solid #013c94;
    box-shadow: 4px 8px 18px 4px rgba(0, 0, 0, 0.12);
}

.product-line-page .product-line-form-heading {
    color: #013c94;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.product-line-page .product-line-form-intro {
    margin-bottom: 1.5rem;
}

.product-line-page .product-line-section-heading {
    margin-bottom: 1rem;
}

.product-line-page .product-line-section-heading::after {
    border-bottom: 3px solid #013c94;
    content: "";
    display: block;
    margin: 1rem auto 0;
    width: 80px;
}

.product-line-page .product-line-card {
    background: #fff;
    box-shadow: 4px 8px 7px 4px rgba(0, 0, 0, 0.11);
    display: flex;
    flex-direction: column;
}

.product-line-page .product-line-card-image {
    height: 220px;
    margin-bottom: 1.5rem;
}

.product-line-page .product-line-card-image img {
    max-height: 220px;
    max-width: 100%;
    transition: transform 0.2s cubic-bezier(0.46, 0.03, 0.52, 0.96);
}

.product-line-page .product-line-card-image:hover img {
    transform: scale(1.03);
}

.product-line-page .product-line-card-title {
    line-height: 1.15;
    margin-bottom: 1rem;
}

.product-line-page .product-line-card-title a:hover,
.product-line-page .product-line-card-title a:focus {
    color: #011e4a;
}


/* Keep cards visually consistent regardless of source-product content length. */
.product-line-page .product-line-card-title {
    min-height: 2.4em;
}

.product-line-page .product-line-card-features {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-size: 0.95rem;
}

.product-line-page .product-line-card-feature-list {
    margin-bottom: 0.5rem;
    min-height: 8.75rem;
}

.product-line-page .product-line-card-more {
    margin-top: 0.25rem;
}

.product-line-page .product-line-card-more summary {
    color: #013c94;
    cursor: pointer;
    font-weight: 700;
    list-style-position: outside;
    margin-bottom: 0.5rem;
}

.product-line-page .product-line-card-more summary:hover,
.product-line-page .product-line-card-more summary:focus {
    color: #011e4a;
}

.product-line-page .product-line-card-more ul {
    margin-bottom: 0;
}

.product-line-page .product-line-card-features ul {
    padding-left: 1.25rem;
}

.product-line-page .product-line-card-features li:not(:last-child) {
    margin-bottom: 0.35rem;
}

.product-line-page .product-line-admin-note {
    background: #fff3cd;
    border: 1px solid #ffe69c;
    padding: 0.75rem;
}

/* Gravity Forms: keep these overrides deliberately light so GF's own theme remains intact. */
.product-line-page .gform_wrapper input[type="text"],
.product-line-page .gform_wrapper input[type="email"],
.product-line-page .gform_wrapper input[type="tel"],
.product-line-page .gform_wrapper input[type="number"],
.product-line-page .gform_wrapper select,
.product-line-page .gform_wrapper textarea {
    max-width: 100%;
}

.product-line-page .gform_wrapper input[type="submit"],
.product-line-page .gform_wrapper button[type="submit"] {
    background-color: #013c94;
    border: 1px solid #013c94;
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.5rem 2rem;
    text-transform: uppercase;
}

.product-line-page .gform_wrapper input[type="submit"]:hover,
.product-line-page .gform_wrapper button[type="submit"]:hover {
    background-color: #011e4a;
    border-color: #011e4a;
}

@media (max-width: 991.98px) {
    .product-line-page .product-line-copy {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-line-page .product-line-card-image {
        height: 180px;
    }

    .product-line-page .product-line-card-image img {
        max-height: 180px;
    }
}
