/* Props Pages CSS - Using prices page intro structure */

/* ========================
   PROPS INTRO SECTION  
   ======================== */

.intro {
    overflow: hidden;
    position: relative;
}

.intro .section-bg {
    background-color: var(--dark-background);
    inset: 0;
    position: absolute;
}

.intro .container {
    align-items: center;
    min-height: 100vh;
    row-gap: 46px;
    z-index: 1;
    position: relative;
    margin: 0 auto;
    padding: 0 clamp(20px, 2.083vw, 40px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 1.667vw, 32px);
}

.intro .section-content {
    display: contents;
}

/* Left column - Logo and text */
.intro .section-left {
    grid-column: 2/7;
    gap: 16px;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 9;
}

/* Right column - Form */  
.intro .section-right {
    grid-column: 7/12;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================
   LEFT COLUMN - LOGO/TITLE
   ======================== */

.intro .section-left {
    color: white;
}

.intro .section-logo {
}

.intro .logo-container {
    display: inline-block;
}

.intro .logo-container img {
    max-width: 100%;
    height: auto;
}

.intro .fallback-logo {
    font-size: clamp(36px, 3vw, 48px);
    font-weight: 700;
    color: var(--blue);
    letter-spacing: 2px;
    font-family: var(--font-bold);
}

.intro .section-title h1 {
    font-size: clamp(28px,3.125vw,60px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;

}

.intro .section-title p {
    font-size: clamp(16px, 0.938vw, 18px);
    color: var(--base-secondary);
    line-height: 144%;
    opacity: 0.8;
    max-width: clamp(320px, 19.792vw, 380px);
}

/* ========================
   RIGHT COLUMN - FORM
   ======================== */


.intro .registration-form {
    width: 100%;
    max-width: 400px;
}

.intro .registration-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.intro .form-header .title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    display: block;
}

.intro .custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}





.intro .custom-form button {
    font-size: 16px;
    width: 100%;
    margin-top: 24px;
}


.intro .custom-form button:hover {
    background: linear-gradient(90deg, #3d3ae6, #6943e3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(101, 76, 244, 0.4);
}

.registration-form .cta-bottom {
    display: none;
}


.form-error {
    color: var(--base-error);
    text-align: center;
    padding-top: 16px;
    font-size: 16px;
}



/* ========================
   CONTENT SECTION
   ======================== */

.content-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* ========================
   DEBUG INFO
   ======================== */

.debug-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-family: monospace;
}

.debug-info p {
    margin-bottom: 8px;
}

/* ========================
   PATTERNS (from prices page)
   ======================== */

.intro .pattern {
    position: absolute;
    pointer-events: none;
}
@media (min-width: 1025px) {
    .intro .pattern {
        display:block;
        pointer-events: none;
        position: absolute
    }

    .intro .pattern.left {
        aspect-ratio: 3/7;
        background: url(../img/patterns/accordion-left-2.svg) 0/cover no-repeat;
        bottom: 0;
        left: -1vw;
        opacity: .3;
        transform: translateY(20%);
        width: clamp(150px,11.458vw,220px)
    }

    .intro .pattern.left-lg {
        aspect-ratio: 2/3;
        background: url(../img/patterns/ref-left.svg) 0/cover no-repeat;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: clamp(700px,52.083vw,1000px)
    }
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 1366px) {
    .intro .section-right {
        grid-column: 8/12;
    }
}

@media (max-width: 1024px) {
    .intro .container {
        display: flex;
        flex-direction: column;
        padding-top: 100px;
    }
    
    .intro .section-left,
    .intro .section-right {
        width: 100%;
    }
    
    .intro .section-right {
        padding-inline: 44px;
    }
    
    .intro .section-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .intro .container {
        padding: 35px 14px 60px!important;
    }
    
    .intro .section-right {
        padding-inline: 0;
    }
    
    .intro .registration-form-wrapper {
        padding: 30px 20px;
    }
}

/* ========================
   HOW TO START SECTION  
   ======================== */

.how-to-start {
    padding: clamp(60px, 6.25vw, 120px) 0;
    background-color: var(--white);
}

.how-to-start .container {
    margin: 0 auto;
    padding: 0 clamp(20px, 2.083vw, 40px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 1.667vw, 32px);
    align-items: center;
}

.how-to-start .section-content {
    display: contents;
}

/* Left column - Image */
.how-to-start .section-left {
    grid-column: 1/6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-to-start .image-container {
    width: 100%;
/*    max-width: 400px;*/
}

.how-to-start .platform-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Right column - Instructions */
.how-to-start .section-right {
    grid-column: 7/12;
}

.how-to-start .section-title {
    margin-bottom: 32px;
    color: var(--dark-text);
}

.how-to-start .instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.how-to-start .step {
    display: flex;
    align-items: center;
    gap: 16px;
}

.how-to-start .step-number {
    background-color: var(--blue);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
}

.instruction-steps p {
    margin: 0;
    line-height: 1.6;
    padding-top: 4px;
    margin: 0;
    line-height: 1.6;
    padding-top: 4px;
    font-family: var(--font-medium);
    font-weight: 500;
    letter-spacing: 0.02em;
}


.instruction-steps a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.how-to-start .download-link:hover,
.how-to-start .broker-link:hover {
    border-bottom-color: var(--blue);
}
@media screen and (max-width: 768px) {

    /* How to start mobile */
    .how-to-start .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .how-to-start .section-left {
        grid-column: 1;
        order: 2;
    }
    
    .how-to-start .section-right {
        grid-column: 1;
        order: 1;
    }
    
    .how-to-start .section-title {
        text-align: center;
        margin-bottom: 30px;
    }
    
}
/* ========================
   FAQ SECTION (FROM REFERRALS)
   ======================== */

.faq {
    overflow: hidden;
    padding: clamp(60px, 6.25vw, 120px) 0;
}

.faq[data-theme=dark] {
    background: #0f1228;
    --icon-def: var(--dark-gray);
    --icon-hover: var(--white);
}

.faq .container {
    row-gap: clamp(20px, 2.083vw, 40px);
    z-index: 1;
    position: relative;
    margin: 0 auto;
    padding: 0 clamp(20px, 2.083vw, 40px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 1.667vw, 32px);
}

.faq .section-title {
    grid-column: 2/5;
}

.faq .section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--white);
    margin: 0;
}

.faq .section-list {
    gap: clamp(24px, 1.667vw, 32px);
    grid-area: 1/5/4/-2;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .faq .section-list {
        margin-top: 20px;
        grid-column: 1/-1;
        grid-area: auto;
    }
    
    .faq .section-title {
        grid-column: 1/-1;
        text-align: center;
        margin-bottom: clamp(30px, 3vw, 40px);
    }
}

.faq .section-list .item {
    --is-open: 0;
    --rows: 0fr;
    --icon: var(--icon-def);
    border-bottom: 2px solid var(--grey-20);
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

.faq .section-list .item.expanded {
    --is-open: 1;
    --rows: 1fr;
}

.faq .section-list .item-button {
    align-items: flex-start;
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    min-height: clamp(32px, 2.292vw, 44px);
    padding-right: clamp(50px, 3.542vw, 68px);
    position: relative;
    text-align: left;
    width: 100%;
    background: none;
    border: none;
}

@media (hover: hover) {
    .faq .section-list .item-button:hover {
        --icon: var(--icon-hover);
    }
}

.faq .section-list .item-title {
    color: var(--white);
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: bold;
    margin: 0;
    flex: 1;
}

.faq .section-list .item-icon {
    aspect-ratio: 1;
    background: var(--icon);
    flex: none;
    -webkit-mask: url(../img/icons/open.svg) center/cover no-repeat;
    mask: url(../img/icons/open.svg) center/cover no-repeat;
    position: relative;
    position: absolute;
    right: 0;
    top: 0;
    transform: rotate(calc(var(--is-open) * 45deg));
    transition: var(--transition);
    width: clamp(32px, 2.292vw, 44px);
}

.faq .section-list .item-icon:before {
    background: var(--gradient-hover);
    content: "";
    inset: 0;
    opacity: var(--is-open);
    position: absolute;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .faq .section-list .item-icon:before {
        opacity: 1;
    }
}

.faq .section-list .item-collapsed {
    display: grid;
    grid-template-rows: var(--rows);
    transition: grid-template-rows var(--transition);
}

.faq .section-list .item--wrapper {
  
    overflow: hidden;
}
@media (max-width: 1024px) {
    .faq .section-list .item--wrapper {
        max-width: 90%;
    }
}

.faq .section-list .item--wrapper .content {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    line-height: 1.6;
}
.faq .section-list .item--wrapper .content img {
    width: 100%;
}
.faq .section-list .item--wrapper .content > * {
    margin-top: 1em;
}
.faq .section-list .item--wrapper .content a {
    text-decoration: underline;
}

.faq .section-list .item--wrapper .content:first-child {
    margin-top: 0;
}

.faq .section-list .item--wrapper .content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    aspect-ratio: 1.8 / 1;
}

.faq .section-list .item--wrapper b,
.faq .section-list .item--wrapper strong {
    font-family: var(--font-bold);
}

/* FAQ Patterns (FROM REFERRALS) */
.faq .pattern {
    display: none;
    pointer-events: none;
    position: absolute;
}

@media (min-width: 1025px) {
    .faq[data-theme=dark] .pattern {
        display: block;
    }
    
    .faq[data-theme=dark] .pattern.left {
        aspect-ratio: 7/3;
        bottom: -35px;
        left: clamp(50px, 8.333vw, 160px);
        width: clamp(400px, 31.25vw, 600px);
    }
    
    .faq[data-theme=dark] .pattern.left > div {
        aspect-ratio: 3/7;
        background: url(../img/patterns/accordion-left-2.svg) 0/cover no-repeat;
        height: clamp(400px, 31.25vw, 600px);
        position: absolute;
        top: 100%;
        transform: rotate(-90deg);
        transform-origin: top left;
    }
    
    .faq[data-theme=dark] .pattern.left-lg {
        aspect-ratio: 1;
        background: url(../img/patterns/faq-left.svg) 0 100%/cover no-repeat;
        bottom: 0;
        left: 0;
        width: clamp(700px, 52.083vw, 1000px);
    }
    
    .faq[data-theme=dark] .pattern.top {
        aspect-ratio: 13/5;
        background: url(../img/patterns/faq-top.svg) 0 100%/cover no-repeat;
        right: 0;
        top: 0;
        width: clamp(500px, 33.854vw, 650px);
    }
}

@media (max-width: 768px) {
    .faq .section-title {
        grid-area: 2 / 1 / 1 / -1;
    }
    .faq .section-list {
        grid-area: 2 / 1 / 2 / -1;
    }
    .faq .section-list .item--wrapper {
        max-width: 100%;
    }
}

/* Стили для Props страниц без header/footer */
body.props-page-no-header-footer {
    /* Убираем отступы которые могли остаться от header/footer */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Скрываем элементы которые могут появиться от плагинов */
body.props-page-no-header-footer .header,
body.props-page-no-header-footer .footer,
body.props-page-no-header-footer .site-header,
body.props-page-no-header-footer .site-footer,
body.props-page-no-header-footer .main-navigation,
body.props-page-no-header-footer .breadcrumbs {
    display: none !important;
}

/* Убираем возможные отступы от основного контента */
body.props-page-no-header-footer main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Props Disclaimer Section - стили в стиле футера */
.props-disclaimer {
    background: #090b17;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 0;
}
.props-disclaimer  .container {
    padding-block:0;
}
.props-disclaimer .disclaimer-content {
    max-width: 100%;
    display: grid;
    grid-column: 1 / -1;
    color: var(--grey-80);
}

.props-disclaimer p {
    margin-bottom: 20px;
    color: var(--grey-80);
}

.props-disclaimer  p:last-child {
    margin-bottom: 0;
}

.props-disclaimer .disclaimer-text .company-info {
    font-size: 14px;
    color: #ffffff;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.props-disclaimer .disclaimer-text strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .props-disclaimer {
        padding: 30px 0;
    }
    
    .props-disclaimer .disclaimer-text p {
        font-size: 13px;
    }
    
    .props-disclaimer .disclaimer-text .company-info {
        margin-top: 20px;
        padding-top: 15px;
    }
}



@media (min-width: 1025px) {
    .intro .section-promo-line {
        aspect-ratio:1;
        display: block;
        pointer-events: none;
        position: absolute;
        top: 0;
        width: clamp(400px,34.896vw,670px)
    }

    .intro .section-promo-line.left {
        background: url('/wp-content/themes/bamboo/assets/img/patterns/pricing-promo-left.svg') no-repeat 50%/cover;
        right: 100%
    }

    .intro .section-promo-line.right {
        background: url('/wp-content/themes/bamboo/assets/img/patterns/pricing-promo-right.svg') no-repeat 50%/cover;
        left: 100%
    }

}

/* Props Success Message Styles */
.props-success-message {
    margin-top: 20px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.props-success-message .success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.props-success-message .success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s ease-out 0.2s both;
}

.props-success-message .success-title {
    color: #ffffff;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.props-success-message .success-text {
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.5;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* Success Message Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide form content when success message is shown */
.props-registration-form.success-shown .form-content {
    display: none;
}

.props-registration-form.success-shown .form-header {
    display: none;
}

/* Responsive adjustments for success message */
@media (max-width: 768px) {
    .props-success-message {
        padding: 20px;
        margin-top: 15px;
    }
    
    .props-success-message .success-title {
        font-size: 20px;
    }
    
    .props-success-message .success-text {
        font-size: 14px;
    }
    
    .props-success-message .success-icon svg {
        width: 40px;
        height: 40px;
    }
}
