/* =============================
   AMVet custom styles (grouped)
   ============================= */

/* ===== Layout & utilities ===== */
.double-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-flex {
    width: 49%;
}

.info-block-acc {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.info-block-acc img {
    margin-left: 10px;
    margin-bottom: -1px;
}

/* ===== Typography ===== */
/* dark text helper */
p.dark-text {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #FFFFFF;
    opacity: 0.5;
    margin-top: -30px;
}

/* block split title */
h1 span {
    display: block;
}

/* accent color */
.highlight-text {
    color: #678CA6;
}

/* ===== Forms (Contact Form 7) ===== */
.wpcf7-submit {
    margin-bottom: 10px;
    border: 0;
    font-size: 18px !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background: #5BC0DE !important;
    border-radius: 15px;
    color: #ffff !important;
    font-weight: bold !important;
}

span.wpcf7-form-control-wrap input {
    width: 100%;
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 27px;
    color: rgba(24, 23, 21, 0.654902);
    border-radius: 15px;
    border: 0;
    padding: 18px;
    margin-bottom: 20px;
}

select.wpcf7-form-control.wpcf7-select {
    width: 100%;
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 27px;
    color: rgba(24, 23, 21, 0.654902);
    border-radius: 15px;
    border: 0;
    padding: 18px;
    margin-bottom: 20px;
    padding-right: 30px !important;
}

textarea.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 27px;
    color: rgba(24, 23, 21, 0.654902);
    border-radius: 15px;
    border: 0;
    padding: 18px;
    margin-bottom: 20px;
    max-height: 180px;
}

/* ===== Accordion component ===== */
/* container */
.accordion-item {
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* header */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    position: relative;
    background: #f9f9f9;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f0f0f0;
}

/* title */
.accordion-title,
span.accordion-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
}

/* icon */
.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

/* CTA button in header (managed by JS) */
.accordion-button {
    display: none;
    position: absolute;
    right: 50px;
    padding: 5px 10px;
    font-size: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button.accordion-button {

    padding: 8px 16px;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;

    z-index: 99999;
}

button.accordion-button:hover {
    background: #181715;
}

/* content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: 1px solid #5BC0DE;
    border-radius: 0 !important;
    background: #5BC0DE1A;
    margin-top: -2px;
}

/* inner elements */
.accordion-content h4 {
    margin-left: 20px;
    margin-bottom: 0;
}

p.small-cat-price {
    padding-left: 20px;
    padding-top: 20px;
    margin-bottom: 10px;
}

.price-flexim {
    padding-bottom: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #5BC0DE;
    padding-left: 20px;
    padding-right: 20px;
}

.accordion-content-price .price-flexim {
    border: 0;
    padding-left: 40px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.accordion-content-price {
    padding-bottom: 10px;
    border-bottom: 1px solid #5BC0DE;
}

p.price-price {
    font-weight: 700;
    color: #678CA6;
}

/* header visuals when used inside .accordion-item */
.accordion-item .accordion-header {
    background: #5BC0DE;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.accordion-item .accordion-header:first-child {
    background: #5BC0DE;
    color: #fff;
    border-radius: 30px 30px 0 0;
}

.accordion-header.last-child {
    border-bottom: 0;
    border: 0;
}

/* legacy state (kept for backward compatibility) */
.accordion-item.active .accordion-content {
    max-height: 100%;
    padding: 15px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(270deg);
}

.accordion-item.active .accordion-button {
    display: inline-block;
}

/* ===== Elementor-specific tweaks ===== */
summary.e-n-accordion-item-title[aria-expanded="true"] {
    border-bottom: 0 !important;
    border-radius: 30px 30px 0 0;
}

span.e-n-accordion-item-title-icon {
    height: 40px;
    width: 40px;
    margin-top: -25px;
}

span.e-n-accordion-item-title-icon svg {
    height: 40px !important;
}

.elementor-1485 .elementor-element.elementor-element-582e319:not(.elementor-motion-effects-element-type-background),
.elementor-1485 .elementor-element.elementor-element-582e319>.elementor-motion-effects-container>.elementor-motion-effects-layer {
    background: transparent;
}

.elementor-element.elementor-element-d575b8d.e-con-full.e-flex.e-con.e-child {
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* utility visibility */
#meh {
    opacity: 0;
}

/* =============================
   Media queries
   ============================= */
@media screen and (max-width: 700px) {
    .double-flex {
        display: block;
    }

    .left-flex {
        width: 100%;
    }

    .wpcf7-submit {
        width: 100%;
    }

    .info-block-acc {
        margin-left: 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    #meh {
        opacity: 1;
    }

    /* page-specific */
    #stoma br {
        display: none !important;
    }

    #hem .elementor-widget-container {
        margin-bottom: 0 !important;
    }

    summary.e-n-accordion-item-title[aria-expanded="true"] div {
        font-weight: 700 !important;
    }

    a.elementor-button.elementor-button-link.elementor-size-sm {
        width: 100% !important;
    }

    .price-flexim p {
        font-size: 16px;
    }

    p.small-cat-price {
        font-size: 16px;
    }

    p.price-price {
        width: 82px;
        margin-left: 15px;
    }

    .e-n-accordion-item-title-text {
        max-width: 210px;
    }

    .elementor-1485 .elementor-element.elementor-element-582e319:not(.elementor-motion-effects-element-type-background),
    .elementor-1485 .elementor-element.elementor-element-582e319>.elementor-motion-effects-container>.elementor-motion-effects-layer {
        background-color: #FFFFFF;
    }

    span.accordion-title {
        font-weight: 700;
        font-size: 18px;
        line-height: 27px;
    }

    .accordion-item .accordion-header:first-child {
        border-bottom: 1px solid #fff;
    }

    /* mobile CTA behaviors */
    button.accordion-button {
        margin-right: 90px;
        margin-top: 10px;
    }

    button.accordion-button {
        margin-right: 0;
        margin-top: 0;
        position: fixed;
        bottom: 0;
        width: 100%;
        right: 0;
        border-radius: 0;
    }
}