/* style/tools-cashback-calculator.css */

:root {
    --page-primary-color: #007bff;
    --page-secondary-color: #ffc107;
    --page-text-color-dark: #333;
    --page-text-color-light: #fff;
    --page-background-light: #f8f9fa;
    --page-background-dark: #343a40;
    --page-border-color: #dee2e6;
}

.page-tools-cashback-calculator {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-text-color-dark);
}

.page-tools-cashback-calculator__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-tools-cashback-calculator__hero-section {
    background: linear-gradient(135deg, var(--page-primary-color) 0%, #0056b3 100%); /* Darker blue gradient */
    color: var(--page-text-color-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-tools-cashback-calculator__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,blue_yellow,pattern]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-tools-cashback-calculator__title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    z-index: 1;
    color: var(--page-secondary-color);
}

.page-tools-cashback-calculator__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.page-tools-cashback-calculator__hero-image-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.page-tools-cashback-calculator__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-tools-cashback-calculator__calculator-section {
    padding: 60px 0;
    background-color: var(--page-background-light);
    text-align: center;
}

.page-tools-cashback-calculator__section-title {
    font-size: 2.2em;
    color: var(--page-primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.page-tools-cashback-calculator__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--page-secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-tools-cashback-calculator__text-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

.page-tools-cashback-calculator__calculator-card {
    background-color: var(--page-text-color-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-tools-cashback-calculator__form-group {
    text-align: left;
}

.page-tools-cashback-calculator__label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--page-primary-color);
    font-size: 1.1em;
}

.page-tools-cashback-calculator__input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--page-border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.page-tools-cashback-calculator__input:focus {
    border-color: var(--page-primary-color);
    outline: none;
}

.page-tools-cashback-calculator__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.page-tools-cashback-calculator__button--primary {
    background-color: var(--page-primary-color);
    color: var(--page-text-color-light);
    border: 2px solid var(--page-primary-color);
}

.page-tools-cashback-calculator__button--primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.page-tools-cashback-calculator__button--secondary {
    background-color: var(--page-secondary-color);
    color: var(--page-text-color-dark);
    border: 2px solid var(--page-secondary-color);
}

.page-tools-cashback-calculator__button--secondary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.page-tools-cashback-calculator__button--outline {
    background-color: transparent;
    color: var(--page-primary-color);
    border: 2px solid var(--page-primary-color);
}

.page-tools-cashback-calculator__button--outline:hover {
    background-color: var(--page-primary-color);
    color: var(--page-text-color-light);
}

.page-tools-cashback-calculator__button--large {
    padding: 15px 35px;
    font-size: 1.2em;
    margin-top: 20px;
}

.page-tools-cashback-calculator__result-box {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.page-tools-cashback-calculator__result-label {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 10px;
}

.page-tools-cashback-calculator__result-amount {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--page-primary-color);
}

.page-tools-cashback-calculator__disclaimer {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 20px;
}

.page-tools-cashback-calculator__info-section {
    padding: 60px 0;
    background-color: var(--page-background-light);
}

.page-tools-cashback-calculator__info-section--dark {
    background-color: var(--page-background-dark);
    color: var(--page-text-color-light);
}

.page-tools-cashback-calculator__info-section--dark .page-tools-cashback-calculator__section-title {
    color: var(--page-secondary-color);
}

.page-tools-cashback-calculator__info-section--dark .page-tools-cashback-calculator__section-title::after {
    background-color: var(--page-primary-color);
}

.page-tools-cashback-calculator__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
}

@media (min-width: 768px) {
    .page-tools-cashback-calculator__content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.page-tools-cashback-calculator__content-block {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tools-cashback-calculator__info-section--dark .page-tools-cashback-calculator__content-block {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-tools-cashback-calculator__sub-title {
    font-size: 1.8em;
    color: var(--page-secondary-color);
    margin-bottom: 15px;
}

.page-tools-cashback-calculator__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.page-tools-cashback-calculator__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-tools-cashback-calculator__list li {
    margin-bottom: 10px;
}

.page-tools-cashback-calculator__platform-benefits {
    padding: 60px 0;
    background-color: var(--page-background-light);
    text-align: center;
}

.page-tools-cashback-calculator__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tools-cashback-calculator__benefit-card {
    background-color: var(--page-text-color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-tools-cashback-calculator__benefit-card:hover {
    transform: translateY(-5px);
}

.page-tools-cashback-calculator__benefit-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.page-tools-cashback-calculator__benefit-title {
    font-size: 1.5em;
    color: var(--page-primary-color);
    margin-bottom: 15px;
}

.page-tools-cashback-calculator__benefit-description {
    color: #666;
}

.page-tools-cashback-calculator__cta-group {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tools-cashback-calculator__faq-section {
    padding: 60px 0;
    background-color: #f1f5f9;
    color: var(--page-text-color-dark);
}

.page-tools-cashback-calculator__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-tools-cashback-calculator__faq-item {
    background-color: var(--page-text-color-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.page-tools-cashback-calculator__faq-question {
    font-size: 1.3em;
    color: var(--page-primary-color);
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-tools-cashback-calculator__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-secondary-color);
    transition: transform 0.3s ease;
}

.page-tools-cashback-calculator__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-tools-cashback-calculator__faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-tools-cashback-calculator__faq-answer.open {
    max-height: 200px; /* Adjust based on expected content length */
    padding-top: 10px;
}

.page-tools-cashback-calculator__cta-bottom {
    background-color: var(--page-primary-color);
    color: var(--page-text-color-light);
    padding: 70px 0;
    text-align: center;
    background-image: url('[GALLERY:bg:abstract,geometric,blue_yellow,pattern_light]');
    background-size: cover;
    background-position: center;
}

.page-tools-cashback-calculator__cta-bottom .page-tools-cashback-calculator__section-title {
    color: var(--page-secondary-color);
    margin-bottom: 25px;
}

.page-tools-cashback-calculator__cta-bottom .page-tools-cashback-calculator__section-title::after {
    background-color: var(--page-text-color-light);
}

.page-tools-cashback-calculator__cta-bottom .page-tools-cashback-calculator__text-intro {
    color: var(--page-text-color-light);
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-tools-cashback-calculator__title {
        font-size: 2.2em;
    }
    .page-tools-cashback-calculator__subtitle {
        font-size: 1.1em;
    }
    .page-tools-cashback-calculator__section-title {
        font-size: 1.8em;
    }
    .page-tools-cashback-calculator__calculator-card {
        padding: 30px;
    }
    .page-tools-cashback-calculator__benefit-card {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .page-tools-cashback-calculator__hero-section,
    .page-tools-cashback-calculator__calculator-section,
    .page-tools-cashback-calculator__info-section,
    .page-tools-cashback-calculator__platform-benefits,
    .page-tools-cashback-calculator__faq-section,
    .page-tools-cashback-calculator__cta-bottom {
        padding: 40px 0;
    }
    .page-tools-cashback-calculator__title {
        font-size: 1.8em;
    }
    .page-tools-cashback-calculator__subtitle {
        font-size: 1em;
    }
    .page-tools-cashback-calculator__section-title {
        font-size: 1.6em;
    }
    .page-tools-cashback-calculator__text-intro {
        font-size: 1em;
    }
    .page-tools-cashback-calculator__calculator-card {
        padding: 20px;
    }
    .page-tools-cashback-calculator__button {
        font-size: 1em;
        padding: 10px 20px;
    }
    .page-tools-cashback-calculator__button--large {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .page-tools-cashback-calculator__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-tools-cashback-calculator__faq-question {
        font-size: 1.1em;
    }
    .page-tools-cashback-calculator__faq-answer {
        font-size: 0.95em;
    }
}