/**
 * Pricing Page Styles
 * Version: 1.0
 */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Header Section
   ======================================== */
.pricing-page-head-wrapper {
    margin-bottom: 40px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
    display: block;
}

.pricing-page-head {
    position: relative;
    width: 1415.206px;
    max-width: 100%;
    height: 435.433px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.pricing-page-head__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.pricing-page-head__image img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: right;
    display: block;
}

.pricing-page-head__image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, #000 40%);
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

.pricing-page-head__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
    border-radius: 0 0 10px 10px;
    z-index: 1;
    pointer-events: none;
}

.pricing-page-head__content {
    position: absolute;
    right: 0;
    bottom: 0px;
    z-index: 2;
    padding: 40px;
    width: 60%;
    top: auto;
}

.pricing-page-head__title {
    color: #FFF;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: 60px;
    margin: 0 0 15px;
    position: relative;
    display: inline-block;
}

.pricing-page-head__underline {
    display: block;
    background: #39cebf;
    height: 4px;
    width: 100%;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* ========================================
   Header Form Overlay (removed - moved to sidebar)
   ======================================== */

.pricing-form {
    border-radius: 20px;
    background: #FFF;
    box-shadow: 0 0 20px 0 rgba(0, 23, 68, 0.15);
    padding: 30px 25px;
    width: 406px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.pricing-form__text {
    color: #000;
    text-align: center;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 46px;
    margin-bottom: 10px;
}

.pricing-form__phone {
    margin-bottom: 15px;
}

.pricing-form__phone a {
    color: #000;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 46px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.pricing-form__phone a:hover {
    color: #39cebf;
}

.pricing-form__subtext {
    color: #000;
    text-align: center;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 25px;
}

.pricing-form__form {
    margin-top: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-form__field {
    margin-bottom: 15px;
}

.pricing-form__form .pricing-form__field:last-of-type {
    margin-bottom: 0;
}

.pricing-form__field input,
.pricing-form__field select {
    width: 100%;
    border-radius: 4px;
    background: #F0F0F0;
    border: none;
    padding: 12px 15px;
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    box-sizing: border-box;
}

/* Nice-select styling to match other fields */
.pricing-form__field .nice-select {
    width: 100%;
    border-radius: 4px;
    background: #F0F0F0;
    border: none;
    padding: 12px 15px;
    padding-right: 15px;
    padding-left: 40px;
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    box-sizing: border-box;
    height: auto;
    min-height: auto;
}

.pricing-form__field .nice-select .current {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    padding: 0;
}

.pricing-form__field .nice-select:after {
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    right: auto;
    left: 15px;
}

.pricing-form__field .nice-select.open:after {
    margin-top: -2px;
}

.pricing-form__field .nice-select .list {
    background: #F0F0F0;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    text-align: right;
    direction: rtl;
}

.pricing-form__field .nice-select .list .option {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    padding: 12px 15px;
}

.pricing-form__field .nice-select .list .option:hover,
.pricing-form__field .nice-select .list .option.selected {
    background: rgba(57, 206, 191, 0.1);
    color: #000;
}

.pricing-form__field input::placeholder {
    color: #000;
    opacity: 1;
}

.pricing-form__field select {
    cursor: pointer;
    appearance: none;
    border-radius: 4px;
    background: #F0F0F0;
    border: none;
    padding: 12px 15px;
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 40px;
}

.pricing-form__submit {
    width: 128px;
    height: 52px;
    border-radius: 6px;
    background: #39cebf;
    border: none;
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 10px auto auto auto;
}

.pricing-form__submit:hover {
    background: #3bc5e5;
}

.pricing-form__submit svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ========================================
   Contact Form 7 Styling
   ======================================== */
.pricing-form__form-wrapper {
    margin-top: 20px;
}

.pricing-form__form-wrapper .wpcf7-form {
    margin: 0;
}

.pricing-form__form-wrapper .pricing-form__field {
    margin-bottom: 15px;
}

.pricing-form__form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.pricing-form__form-wrapper .wpcf7-text,
.pricing-form__form-wrapper .wpcf7-tel,
.pricing-form__form-wrapper .wpcf7-select {
    width: 100%;
    border-radius: 4px;
    background: #F0F0F0;
    border: none;
    padding: 12px 15px;
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    box-sizing: border-box;
}

.pricing-form__form-wrapper .wpcf7-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 40px;
}

.pricing-form__form-wrapper .pricing-form__submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pricing-form__form-wrapper .wpcf7-submit {
    width: 128px;
    height: 52px;
    border-radius: 6px;
    background: #39cebf;
    border: none;
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 0 20px;
    position: relative;
}

.pricing-form__form-wrapper .wpcf7-submit:hover {
    background: #3bc5e5;
}

.pricing-form__form-wrapper .wpcf7-submit::after {
    content: '';
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cg clip-path='url(%23clip0_248_1993)'%3E%3Cpath d='M14.0542 19.8208L8.16162 13.9282L13.9283 8.16159' stroke='black' stroke-width='2.06152' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_248_1993'%3E%3Crect width='19.5726' height='20' fill='white' transform='translate(0 13.84) rotate(-45)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
    margin-right: 10px;
}

.pricing-form__form-wrapper .wpcf7-validation-errors,
.pricing-form__form-wrapper .wpcf7-mail-sent-ok {
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 16px;
}

.pricing-form__form-wrapper .wpcf7-validation-errors {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #c62828;
}

.pricing-form__form-wrapper .wpcf7-mail-sent-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

/* ========================================
   Main Content Section
   ======================================== */


@media (max-width: 991px) {
    .pricing-page-content {
        padding: 20px 0;
    }
}

.pricing-page-main {
    padding: 0 15px;
}

/* ========================================
   Tabs Navigation
   ======================================== */
.pricing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.pricing-tab-btn {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    padding: 10px 25px;
    border-radius: 60px;
    background: #F0F0F0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pricing-tab-btn:hover {
    background: #E0E0E0;
}

.pricing-tab-btn.active {
    background: #F0F0F0;
    color: #000;
}

/* ========================================
   Short Description
   ======================================== */
.pricing-page-description {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 40px;
}

.pricing-page-description p {
    margin: 0 0 15px;
}

.pricing-page-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Pricing Categories
   ======================================== */
.pricing-categories {
    position: relative;
}

.pricing-category {
    display: block;
}

.pricing-category__title {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 54px;
    
    border-top: 1px solid #E1E1E1;
    padding-top: 20px;
    scroll-margin-top: 180px; /* Space for header when scrolling */
}

/* ========================================
   Pricing Items
   ======================================== */
.pricing-items {
    margin-bottom: 50px;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    background: #FFF;
}

.pricing-item {
    display: flex;
    border-bottom: 1px solid #E5E5E5;
    overflow: hidden;
    background: #FFF;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item__info {
    flex: 1;
    padding: 20px 25px;
}

.pricing-item__title {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 23px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin: 0 0 10px;
}

.pricing-item__text {
    color: #575757;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
}

.pricing-item__price {
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: rgba(57, 206, 191, 0.10);
    border-right: 1px solid #39CEBF;
    color: #000;
    text-align: center;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
}

/* ========================================
   Sidebar
   ======================================== */
.pricing-page-sidebar {
    padding: 0 15px;
}

.pricing-sidebar-content {
    position: sticky;
    top: 20px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    align-self: flex-start;
}

.pricing-form-sidebar {
    width: 406px;
    max-width: 100%;
    margin-top: -440px;
    position: relative;
    z-index: 10;
}

/* ========================================
   Recommended Articles Section (in Sidebar)
   ======================================== */
.pricing-articles__title {
    color: #000;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    margin: 0 0 30px;
}

.pricing-articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #39cebf;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-article-item:last-child {
    border-bottom: none;
}

.pricing-article-item:hover {
    background: rgba(0, 0, 0, 0.02);
    padding-right: 10px;
    padding-left: 10px;
}

.pricing-article-item__content {
    flex: 1;
    padding-right: 20px;
    text-align: right;
}

.pricing-article-item__title {
    color: #1E1E2F;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px; /* 118.182% */
    margin: 0 0 10px;
}

.pricing-article-item__date {
    color: #575757;
    text-align: right;
    font-family: "Ploni DL 1.1 AAA", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.pricing-article-item__date span {
    display: inline-block;
}

.pricing-article-item__image {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
    border-radius: 5.713px;
    border: 0.714px solid #EBEBEB;
    background: #FFF;
    box-shadow: 0 4px 30px 0 rgba(0, 23, 68, 0.10);
    overflow: hidden;
    margin-left: 20px; /* ריווח בין תמונה לתוכן */
}

.pricing-article-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1500px) {
    .pricing-page-head {
        width: 100%;
        max-width: 1415.206px;
    }
}

@media (max-width: 991px) {
    .pricing-page-head-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        display: block;
    }
    
    .pricing-page-head-wrapper .section-container {
        padding: 0;
        max-width: 100%;
    }
    
    .pricing-page-head {
        height: 400px;
        width: 100%;
        min-height: 400px;
        margin: 0;
        border-radius: 0;
    }
    
    .pricing-page-head__image {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 0;
    }
    
    .pricing-page-head__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .pricing-page-head__image::before {
        width: 100%;
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.3) 100%);
    }
    
    .pricing-page-head__image::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
    }
    
    .pricing-page-head__content {
        width: 100%;
        padding: 20px 15px;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        position: absolute;
        z-index: 2;
    }
    
    .pricing-page-head__title {
        font-size: 48px;
        line-height: 48px;
        color: #FFF !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    
    .pricing-sidebar-content {
        position: static;
        gap: 30px;
        align-items: stretch;
        margin-top: 0;
    }
    
    .pricing-form-sidebar {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .pricing-form {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .pricing-category__title {
        font-size: 28px;
        line-height: 40px;
    }
    
    .pricing-item {
        flex-direction: column;
    }
    
    .pricing-item__price {
        width: 100%;
        border-right: none;
        border-top: 1px solid #39CEBF;
        min-width: auto;
    }
    
    /* הסתרת מאמרים במובייל */
    .pricing-articles__title,
    .pricing-articles-list {
        display: none !important;
    }
    
    .pricing-article-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pricing-article-item__content {
        padding-left: 0;
        padding-bottom: 15px;
        width: 100%;
    }
    
    .pricing-article-item__image {
        width: 108px;
        height: 108px;
        order: -1;
        margin-left: 0;
        margin-right: 20px;
    }
}

@media (max-width: 767px) {
    .pricing-page-head-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        display: block;
    }
    
    .pricing-page-head-wrapper .section-container {
        padding: 0;
        max-width: 100%;
    }
    
    .pricing-page-head {
        height: 450px;
        width: 100%;
        min-height: 450px;
        margin: 0;
        border-radius: 0;
        margin-bottom: 0;
        position: relative;
    }
    
    .pricing-page-content {
        padding-top: 0;
        margin-top: 0;
    }
    
    .pricing-page-head__image {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 0;
    }
    
    .pricing-page-head__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .pricing-page-head__image::before {
        width: 100%;
        background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.3) 100%);
    }
    
    .pricing-page-head__image::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 20%, #000 82%);
    }
    
    .pricing-page-head__content {
        padding: 20px 15px;
        width: 100%;
        bottom: 80px;
        top: auto;
        right: 0;
        left: 0;
        position: absolute;
        z-index: 2;
    }
    
    .pricing-page-head__title {
        color: #FFF;
        text-align: center;
        font-family: "Ploni DL 1.1 AAA", sans-serif;
        font-size: 35px;
        font-style: normal;
        font-weight: 700;
        line-height: 60px; /* 171.429% */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .pricing-page-main {
        order: 2; /* תוכן למטה */
    }
    
    .pricing-page-sidebar {
        order: 1; /* סיידבר למעלה - מתחת לכותרת */
        margin-bottom: 0;
        margin-top: -115px; /* חצי על התמונה - כ-50% מגובה הטופס */
        position: relative;
        z-index: 10;
        padding: 0 15px;
    }
    
    .pricing-form-sidebar {
        margin-top: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .pricing-form {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 auto;
    }
    
    .pricing-form__text {
        font-size: 24px;
        line-height: 36px;
    }
    
    .pricing-form__phone a {
        font-size: 32px;
        line-height: 40px;
    }
    
    .pricing-form__subtext {
        font-size: 18px;
        line-height: 24px;
    }
    
    .pricing-form__field input,
    .pricing-form__field select {
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .pricing-form__submit {
        width: 128px;
        height: 52px;
        font-size: 20px;
    }
    
    .pricing-recommended-articles {
        padding: 40px 0;
    }
    
    .pricing-articles__title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 30px;
        display: none !important; /* הסתרה במובייל */
    }
    
    .pricing-articles-list {
        display: none !important; /* הסתרה במובייל */
    }
    
    .pricing-article-item__title {
        font-size: 20px;
        line-height: 26px;
    }
    
    .pricing-article-item__date {
        font-size: 14px;
    }
    
    .pricing-article-item__image {
        width: 108px;
        height: 108px;
    }
    
    .pricing-tabs {
        gap: 10px;
    }
    
    .pricing-tab-btn {
        font-size: 18px;
        padding: 8px 20px;
        line-height: 26px;
    }
    
    .pricing-page-description {
        font-size: 20px;
        line-height: 28px;
    }
    
    .pricing-category__title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .pricing-item__title {
        font-size: 20px;
        line-height: 22px;
    }
    
    .pricing-item__text {
        font-size: 14px;
        line-height: 16px;
    }
    
    .pricing-item__price {
        font-size: 20px;
        padding: 15px;
    }
}

