/* Pricing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.pricing-hero {
    background-color: #ffffff;
    padding: 80px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #1c1e33;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Pricing Section */
.pricing-section {
    padding: 20px 0 80px;
    background-color: #ffffff;
}

/* Pricing Toggle */
.pricing-toggle-container {
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
}

.btn-color-mode-switch {
    display: inline-block;
    margin: 0;
    position: relative;
}

.btn-color-mode-switch>label.btn-color-mode-switch-inner {
    margin: 0;
    width: 208px;
    height: 48px;
    padding: 6px;
    background: #F1F2F4;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.btn-color-mode-switch>label.btn-color-mode-switch-inner:before {
    content: attr(data-on);
    position: absolute;
    top: 6px;
    right: 6px;
    width: 98px;
    height: 36px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.btn-color-mode-switch>label.btn-color-mode-switch-inner:after {
    content: attr(data-off);
    width: 98px;
    height: 36px;
    background: #ff6418;
    color: white;
    border-radius: 18px;
    position: absolute;
    left: 6px;
    top: 6px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    padding: 6px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(28, 58, 180, 0.2);
}

.btn-color-mode-switch input[type="checkbox"] {
    cursor: pointer;
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0;
}

.btn-color-mode-switch input[type="checkbox"]:checked+label.btn-color-mode-switch-inner:after {
    content: attr(data-on);
    left: 104px;
    background: #ff6418;
    color: white;
}

.btn-color-mode-switch input[type="checkbox"]:checked+label.btn-color-mode-switch-inner:before {
    content: attr(data-off);
    right: auto;
    left: 6px;
}

/* Plans Container */
.plans-container {
    margin-bottom: 50px;
    justify-content: center;
}

.plan-column {
    margin-bottom: 30px;
}

/* Pricing Cards */
.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    max-width: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.recommended {
    border: 2px solid #1c3ab4;
    transform: scale(1.03);
    z-index: 1;
}

.pricing-card.coming-soon {
    opacity: 0.85;
    pointer-events: none;
    border: 2px dashed #1c3ab4;
}

.recommended-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1c3ab4;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(28, 58, 180, 0.25);
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1c3ab4;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(28, 58, 180, 0.25);
}

.card-header {
    padding: 30px 25px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 250, 251, 0.8) 100%);
}

.plan-name {
    font-size: 37px;
    font-weight: 700;
    color: #1c1e33;
    margin-bottom: 10px;
    line-height: 1.2;
}

.plan-duration {
    font-size: 16px;
    color: #1c3ab4;
    margin-bottom: 20px;
    font-weight: 500;
}

.plan-features-description {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    text-align: left;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

.price {
    font-size: 56px;
    font-weight: 700;
    color: #ff6418;
}

.tax {
    font-size: 14px;
    color: #888;
    margin-left: 5px;
}

.monthly-price {
    font-size: 14px;
    color: #ff6418;
    font-weight: 500;
    margin-top: 5px;
}

.subscription-info {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.card-body {
    padding: 35px 30px;
    flex-grow: 1;
}

.card-footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.btn-get-started {
    display: inline-block;
    background: #ff6418;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.btn-get-started:hover {
    background: #e55512;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 100, 24, 0.25);
}

.btn-coming-soon {
    display: inline-block;
    background: #aaa;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    cursor: not-allowed;
    width: 100%;
}

/* Pay Per Job Card */
.pay-per-job-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ebeef0 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1c1e33;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.btn-pay-per-job {
    display: inline-block;
    background: #ff6418;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-pay-per-job:hover {
    background: #e55512;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 100, 24, 0.25);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 60px 50px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.support-header {
    margin-bottom: 30px;
}

.support-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1c1e33;
    margin-bottom: 0;
}

.text-accent {
    color: #ff6418;
}

.support-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.support-text strong {
    color: #1c1e33;
    font-weight: 600;
}

.support-action {
    margin-top: 30px;
}

.btn-contact {
    display: inline-block;
    background: #ff6418;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 100, 24, 0.25);
}

.btn-contact:hover {
    background: #e55512;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 100, 24, 0.3);
}

/* Stili per il contenuto formattato con l'editor */
.plan-features-description strong {
    font-weight: 600;
    color: #1c1e33;
}

.plan-features-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.plan-features-description li {
    margin-bottom: 8px;
    position: relative;
}

.plan-features-description h1,
.plan-features-description h2,
.plan-features-description h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1c3ab4;
}

.plan-features-description h1 {
    font-size: 24px;
}

.plan-features-description h2 {
    font-size: 20px;
}

.plan-features-description h3 {
    font-size: 18px;
}

.plan-features-description p {
    margin-bottom: 15px;
}

.plan-features-description a {
    color: #ff6418;
    text-decoration: none;
}

.plan-features-description a:hover {
    text-decoration: underline;
}

/* Stile per i piani in modalità "Coming Soon" */
.coming-soon .plan-features-description {
    opacity: 0.85;
}

/* Trial Section - DESKTOP STYLES */
.trial-plans-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #ff6418 0%, #e55512 50%, #ff6418 100%);
    margin-bottom: 50px;
    margin-left: -100vw;
    margin-right: -100vw;
    padding-left: calc(100vw - 100%);
    padding-right: calc(100vw - 100%);
    position: relative;
    overflow: hidden;
    margin-top: -2px;
}

.trial-plans-section::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.trial-plans-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

.trial-plans-section .container,
.trial-plans-section .row,
.trial-plans-section .col-lg-8 {
    position: relative;
    z-index: 1;
}

.trial-section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1c1e33;
    margin-bottom: 15px;
}

.trial-plans-section .trial-section-title {
    color: #1c1e33;
}

.trial-section-subtitle {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title-with-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0;
}

.section-title-with-icon i {
    font-size: 56px;
    color: #1c1e33;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.trial-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #1c1e33 0%, #2d305f 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(28, 30, 51, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card.trial-plan {
    border: 2px solid #1c1e33;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.pricing-card.trial-plan .plan-name {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #1c1e33;
}

.pricing-card.trial-plan:hover {
    box-shadow: 0 15px 45px rgba(28, 30, 51, 0.15);
    border-color: #2d305f;
    transform: translateY(-8px);
}

.trial-price {
    font-size: 48px;
    color: #ff6418;
    font-weight: 800;
    letter-spacing: -1px;
}

.trial-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 100, 24, 0.2);
}

.trial-description {
    font-size: 14px;
    color: #ff6418;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

.trial-button {
    background: linear-gradient(135deg, #1c1e33 0%, #2d305f 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    color: white !important;
    font-weight: 600;
}

.trial-button:hover {
    background: linear-gradient(135deg, #2d305f 0%, #1c1e33 100%) !important;
    box-shadow: 0 8px 20px rgba(28, 30, 51, 0.4) !important;
    transform: translateY(-2px);
}

.trial-button i {
    margin-right: 6px;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.trial-section-divider {
    display: none;
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    margin-top: 50px;
    margin-bottom: 0;
}

.scroll-indicator-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0 30px;
    text-align: center;
}

.scroll-pulse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(28, 30, 51, 0.08);
    border-radius: 50%;
    color: #1c1e33;
    font-size: 28px;
    animation: pulse-icon 2s ease-in-out infinite, float-up 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-pulse-icon:hover {
    background: rgba(28, 30, 51, 0.15);
    transform: scale(1.1);
}

.scroll-pulse-icon i {
    animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(28, 30, 51, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(28, 30, 51, 0);
    }
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(6px);
        opacity: 0.8;
    }
}

/* Modal Piano Mancante */
.plan-activation-modal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.plan-activation-modal .modal-header {
    background: linear-gradient(135deg, #ff6418 0%, #ff8c42 100%);
    color: white;
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 2rem 2rem 1.5rem;
}

.plan-activation-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.plan-activation-icon {
    font-size: 4rem;
    color: #ff6418;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.plan-activation-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.plan-activation-actions .btn-primary {
    background: linear-gradient(135deg, #ff6418 0%, #ff8c42 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 100, 24, 0.3);
    transition: all 0.3s ease;
}

.plan-activation-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 100, 24, 0.4);
}

.plan-activation-actions .btn-outline-secondary {
    border: 2px solid #dee2e6;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.plan-activation-actions .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .pricing-hero {
        padding: 60px 0 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .pricing-section {
        padding: 20px 0 60px;
    }

    .pay-per-job-card {
        flex-direction: column;
        text-align: center;
    }

    .card-content {
        margin-bottom: 20px;
    }

    .support-section {
        padding: 40px 30px;
    }

    .support-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .plan-activation-modal .modal-body {
        padding: 1.5rem;
    }

    .plan-activation-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767px) {
    .pricing-hero {
        padding: 50px 0 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .pricing-card.recommended {
        transform: none;
    }

    .support-header h2 {
        font-size: 24px;
    }

    .support-text {
        font-size: 15px;
    }

    .plan-name {
        font-size: 37px;
    }

    .plan-features-description {
        font-size: 16px;
    }
}

/* Extra small devices - MOBILE (under 575px) */
@media (max-width: 575px) {
    .plan-column {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }

    .plans-container {
        gap: 12px;
    }

    .pricing-card {
        height: auto;
        margin-bottom: 10px;
    }

    .card-header {
        padding: 20px 20px;
    }

    .plan-name {
        font-size: 28px;
    }

    .plan-duration {
        font-size: 14px;
    }

    .plan-price {
        margin-bottom: 10px;
    }

    .price {
        font-size: 42px;
    }

    .card-body {
        display: none;
    }

    .card-footer {
        padding: 20px;
    }

    .btn-get-started,
    .btn-coming-soon {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* Trial Section Mobile */
    .trial-plans-section {
        padding: 40px 20px 50px;
    }

    .trial-section-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 1.4;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
        color: #1c1e33 !important;
    }

    .section-title-with-icon i {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .trial-section-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .trial-badge {
        font-size: 11px;
        padding: 5px 10px;
        top: 10px;
        right: 10px;
    }

    .trial-price {
        font-size: 36px;
    }

    .trial-button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Pay Per Job Card Mobile */
    .pay-per-job-card {
        padding: 25px;
        flex-direction: column;
        text-align: center;
    }

    .card-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .card-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .btn-pay-per-job {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Support Section Mobile */
    .support-section {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .support-header h2 {
        font-size: 22px;
    }

    .support-text {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Scroll Indicator Mobile */
    .scroll-indicator-wrapper {
        padding: 20px 0 15px;
    }

    .scroll-pulse-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-10px,0);
    }
    70% {
        transform: translate3d(0,-5px,0);
    }
    90% {
        transform: translate3d(0,-2px,0);
    }
}
