/* =====================================================
   Subscription Form Styles
   ===================================================== */

:root {
    --sub-primary: #4361ee;
    --sub-primary-hover: #3a56d4;
    --sub-success: #2dc653;
    --sub-bg: #f0f2f5;
    --sub-card-bg: #ffffff;
    --sub-text: #212529;
    --sub-text-muted: #6c757d;
    --sub-border: #dee2e6;
    --sub-radius: 12px;
}

body.subscription-page {
    background: #6b7280;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.subscription-wrapper {
    width: 100%;
    max-width: 740px;
}

.subscription-card {
    background: var(--sub-card-bg);
    border-radius: var(--sub-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.65rem 2.2rem;
    border: none;
}

.hero-section {
    background: linear-gradient(-108deg, #79b5fe 9%, #0b560e 84%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: calc(var(--sub-radius) - 2px);
    color: #f0f0f0;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 2rem 1.75rem 1.75rem;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6ee7a0;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: none;
    border: none;
    padding: 0;
}

.hero-section h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-section p {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}

.btn-hero-primary,
.btn-hero-secondary {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-hero-primary {
    background: #22c55e;
    color: #0a1a10;
    border: none;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.btn-hero-primary:hover {
    background: #16a34a;
    color: #0a1a10;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
}

.btn-hero-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero-secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
}

.hero-benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.hero-benefit i {
    font-size: 0.85rem;
    color: #6ee7a0;
}

.hero-visual,
.hero-blob,
.hero-particles,
.hero-particle {
    display: none;
}

/* modern small adaptation for existing card header-area fallback
.subscription-card .card-header-area {
    text-align: center;
    margin-bottom: 2rem;
}
*/

.subscription-card .card-header-area .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sub-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.subscription-card .card-header-area h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sub-text);
    margin-bottom: 0.25rem;
}

.subscription-card .card-header-area p {
    color: var(--sub-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form fields */
.subscription-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sub-text);
    margin-bottom: 0.35rem;
}

.subscription-card .form-label.thin {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--sub-text);
    margin-bottom: 0.35rem;
}

.subscription-card .form-label i.fas,
.subscription-card .form-label i.fab {
    font-size: 0.85rem;
    margin-right: 5px;
    color: #6b7280;
}

.subscription-card .form-label i.fas.fa-phone,
.subscription-card .form-label i.fab.fa-whatsapp {
    color: #6b7280;
}

.subscription-card .form-label i.fas.fa-id-card,
.subscription-card .form-label i.fas.fa-building,
.subscription-card .form-label i.fas.fa-industry {
    color: #6b7280;
}

.subscription-card .form-control {
    border-radius: 8px;
    border: 1px solid var(--sub-border);
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscription-card .form-control:focus {
    border-color: var(--sub-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

#requested_users {
    max-width: 118px;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
}

.team-toggle-wrap {
    margin-top: 1rem;
}

.team-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.team-toggle:hover,
.team-toggle:focus {
    color: #4b5563;
    text-decoration: none;
}

.team-toggle i {
    color: #8a94a3;
}

.team-details-panel {
    padding-top: 0.15rem;
}

.subscription-card .form-select {
    border-radius: 8px;
    border: 1px solid var(--sub-border);
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscription-card .form-select:focus {
    border-color: var(--sub-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.subscription-card .input-group-text {
    background: #f8f9fa;
    border: 1px solid var(--sub-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sub-text-muted);
    border-radius: 8px 0 0 8px;
}

.subscription-card .input-group .form-control {
    border-radius: 0 8px 8px 0;
}

.subscription-card .form-text {
    font-size: 0.8rem;
    color: var(--sub-text-muted);
    margin-top: 0.3rem;
}

/* Sector radio group */
.sector-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.sector-group .sector-option {
    position: relative;
}

.sector-group .sector-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sector-group .sector-option label {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--sub-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sub-text);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    background: #fff;
}

.sector-group .sector-option label:hover {
    border-color: var(--sub-primary);
    color: var(--sub-primary);
}

.sector-group .sector-option input[type="radio"]:checked + label {
    background: var(--sub-primary);
    border-color: var(--sub-primary);
    color: #fff;
}

/* Vertical fields preview disclaimer */
.sector-preview {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--sub-primary);
    background: #f8f9ff;
    border-radius: 0 var(--sub-radius) var(--sub-radius) 0;
    font-size: 0.85rem;
    animation: sectorPreviewIn 0.25s ease;
}

@keyframes sectorPreviewIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sector-preview-header {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
    color: var(--sub-text);
}

.sector-preview-header i {
    margin-right: 0.4rem;
    color: var(--sub-primary);
}

.sector-preview-tagline {
    font-style: italic;
    font-size: 0.8rem;
    color: var(--sub-text-muted);
    margin-bottom: 0.55rem;
}

.sector-preview-label {
    font-weight: 500;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: var(--sub-text);
}

.sector-preview-fields {
    margin-bottom: 0.3rem;
    line-height: 1.9;
}

.sector-preview-fields .badge {
    font-weight: 500;
    font-size: 0.76rem;
    padding: 0.25em 0.55em;
    margin-right: 0.2rem;
}

.sector-preview-badge-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--sub-text-muted);
}

.sector-preview-note {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--sub-text-muted);
    font-style: italic;
}

/* Submit button */
.btn-subscription {
    background: var(--sub-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.btn-subscription:hover {
    background: var(--sub-primary-hover);
    color: #fff;
}

.btn-subscription:active {
    transform: scale(0.98);
}

.submit-note {
    font-size: 0.76rem;
    color: var(--sub-text-muted);
    margin-top: 0.6rem;
    line-height: 1.45;
}

.privacy-accept-wrap {
    font-size: 0.74rem;
    color: var(--sub-text-muted);
}

.privacy-accept-label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    line-height: 1.35;
    cursor: pointer;
    margin-bottom: 1rem;
}

.privacy-accept-label input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
}

.privacy-accept-label a {
    color: var(--sub-text);
    text-decoration: underline;
}

.privacy-accept-label a:hover,
.privacy-accept-label a:focus-visible {
    color: var(--sub-primary);
}

/* Toast text wrapping for long links, e.g. VIES info URL */
.toast .toast-body {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.toast-container .toast {
    min-width: 250px;
    max-width: 420px;
}

#vatViesToast {
    transition: opacity 0.26s ease, transform 0.26s ease;
}

#vatViesToast.vat-vies-toast-strong {
    background: #dc3545;
    color: #fff;
}

#vatViesToast.vat-vies-toast-soft {
    background: #fff4d6;
    color: #7a5a16;
    border: 1px solid #f2ddb0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#vatViesToast.vat-vies-toast-soft .btn-close {
    filter: none;
    opacity: 0.72;
}

#vatViesToast.vat-vies-toast-soft .btn-close:hover {
    opacity: 1;
}

/* Success screen */
.success-screen {
    text-align: center;
    padding: 2rem 1rem;
}

.success-screen .success-checkmark {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--sub-success);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-screen h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sub-text);
    margin-bottom: 1rem;
}

.success-screen p {
    color: var(--sub-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* VAT Checking Toast */
#vatCheckingToast {
    background-color: #87CEEB; /* Sky blue / Cerulean */
    color: #333; /* Darker text for contrast */
    font-size: 1.1rem;
    border: 1px solid #4682B4; /* Steel blue border for grayish effect */
}

/* Language switcher */
.lang-switcher {
    text-align: center;
    margin-bottom: 1rem;
}

.lang-switcher a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    color: var(--sub-text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--sub-primary);
    background: rgba(67, 97, 238, 0.08);
}

.lang-switcher a.active {
    font-weight: 600;
}

.subscription-footer {
    width: 100%;
    max-width: 740px;
    margin: 1rem auto 0;
    text-align: center;
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.subscription-footer p {
    margin: 0;
}

.subscription-footer p + p {
    margin-top: 0.35rem;
}

.subscription-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.subscription-footer a:hover,
.subscription-footer a:focus-visible {
    color: #bfdbfe;
}

/* Responsive */
@media (max-width: 576px) {
    .subscription-card {
        padding: 1.9rem 1.35rem;
    }
    .subscription-card .card-header-area h1 {
        font-size: 1.25rem;
    }
}

/* =====================================================
   Plan Selection Section
   ===================================================== */

.sub-section-plan,
.sub-section-addons {
    margin-bottom: 1.25rem;
}

.sub-section-plan {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 10px;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
}

.sub-section-plan .sub-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sub-text);
    margin-bottom: 0.75rem;
}

.sub-section-addons {
    margin-bottom: 0.75rem;
}

.sub-section-addons .sub-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sub-text-muted);
    margin-bottom: 0.4rem;
}

/* Addon collapsible toggle */
.addon-collapsible-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
}

.addon-collapsible-toggle:hover {
    color: var(--sub-primary);
}

.addon-collapse-icon {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.addon-collapsible-toggle[aria-expanded="true"] .addon-collapse-icon {
    transform: rotate(180deg);
}

.sub-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sub-text);
    margin-bottom: 0.75rem;
}

.sub-section-subtitle {
    font-size: 0.78rem;
    color: var(--sub-text-muted);
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

/* Billing toggle (subscription form version) */
.billing-toggle-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.billing-toggle-sub span {
    font-size: 0.82rem;
    color: var(--sub-text-muted);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    user-select: none;
}

.billing-toggle-sub span.active {
    background: var(--sub-primary);
    color: #fff;
    font-weight: 600;
    border-color: var(--sub-primary);
}

.billing-save-sub {
    font-size: 0.7rem;
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
}

/* Plan cards grid */
.plan-cards-sub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.plan-card-sub {
    position: relative;
    border: 2px solid var(--sub-border);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    background: #fff;
}

.plan-card-sub:hover {
    border-color: var(--sub-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
}

.plan-card-sub.selected {
    border-color: var(--sub-primary);
    box-shadow: 0 0 0 2px var(--sub-primary), 0 4px 16px rgba(67, 97, 238, 0.15);
    background: #f0f4ff;
}

.plan-ai-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    margin: 2px 0 6px;
    letter-spacing: 0.2px;
}

.plan-ai-tag--on {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
}

.plan-ai-tag--off {
    background: #f1f5f9;
    color: #475569;
}

.plan-ai-feats {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--sub-text-muted);
    margin-bottom: 8px;
}

.plan-popular {
    border-color: var(--sub-primary);
}

.plan-popular-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sub-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.plan-best-value-badge {
    position: absolute;
    top: -9px;
    right: 10px;
    background: #166534;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.plan-card-name {
    font-size: 1rem;
    font-weight: 700;
}

.plan-card-price {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    text-align: right;
    white-space: nowrap;
}

.plan-price-after-trial {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--sub-text-muted);
    opacity: 0.85;
}

.plan-price-amount {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sub-text-muted);
}

.plan-price-period {
    font-size: 0.7rem;
    color: var(--sub-text-muted);
}

.plan-monthly-highlight {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 0 2px;
    line-height: 1.15;
}

.plan-monthly-anchor {
    display: none;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #64748b;
    text-decoration-skip-ink: none;
    opacity: 0.95;
}

.plan-monthly-anchor.is-visible {
    display: block;
}

.plan-monthly-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.plan-monthly-value {
    font-size: 1.1rem;
    color: #0f172a;
}

.plan-monthly-suffix {
    font-size: 0.72rem;
    color: #334155;
}

.plan-billing-microcopy {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.25;
}

.plan-billing-note {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    font-style: italic;
    line-height: 1.35;
    opacity: 0.85;
}

.plan-billing-bonus {
    display: none;
    font-size: 0.65rem;
    color: #6c757d;
    font-style: italic;
    line-height: 1.35;
    opacity: 0.85;
}

.plan-card-desc {
    font-size: 0.8rem;
    color: var(--sub-text-muted);
    line-height: 1.35;
    margin-bottom: 8px;
}

.plan-guide-row {
    margin: 0.65rem 0 0.9rem;
}

.plan-help-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.plan-help-link:hover,
.plan-help-link:focus {
    text-decoration: underline;
}

.plan-reassurance {
    margin-top: 0.45rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plan-reassurance-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    padding: 2px 10px;
}

.plan-tech-toggle {
    margin-top: 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.2;
    padding: 0.2rem 0.55rem;
}

.plan-tech-details {
    margin-top: 6px;
}

.plan-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--sub-text-muted);
}

.plan-card-meta span {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.plan-card-trial {
    font-size: 0.82rem;
    color: #166534;
    background: #dcfce7;
    padding: 1rem;
    border-radius: 9px;
    border:#059669 solid 1.5px;
    margin-top: 8px;
    font-weight: 700;
    align-self: flex-start;
    display: inline-block;
    width: fit-content;
}

.plan-trial-single {
    font-size: 0.95rem;
    color: #166534;
    background: #dcfce7;
    padding: 0.75rem 1.25rem;
    border-radius: 9px;
    border: #ffffff solid 1.5px;
    margin: 0.9rem auto 0;
    font-weight: 700;
    text-align: center;
    display: block;
    max-width: 100%;
}

/* Trial notice banner (above plan cards) */
.trial-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 0.9rem;
}

.trial-notice-icon {
    color: #16a34a;
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.trial-notice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trial-notice-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #14532d;
    line-height: 1.3;
}

.trial-notice-text {
    font-size: 0.78rem;
    color: var(--sub-text-muted);
    line-height: 1.4;
}

/* Footer note under plan cards */
.plan-no-payment-note {
    margin-top: 10px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--sub-text-muted);
}

.plan-no-payment-note i {
    color: #16a34a;
}

.plan-change-later-note {
    margin-top: 6px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--sub-text-muted);
    font-style: italic;
}

.plan-change-later-note i {
    color: #0d6efd;
}

/* =====================================================
   Add-on Checkboxes
   ===================================================== */

.addon-checks-sub {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.addon-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafbfc;
}

.addon-check-item:hover {
    border-color: var(--sub-primary);
}

.addon-check-item.selected {
    border-color: var(--sub-primary);
    background: #f0f4ff;
}

.addon-check-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    accent-color: var(--sub-primary);
}

.addon-check-body {
    flex: 1;
    min-width: 0;
}

.addon-check-name {
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.addon-check-detail {
    font-size: 0.68rem;
    color: var(--sub-text-muted);
    line-height: 1.2;
}

.addon-check-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sub-text-muted);
    white-space: nowrap;
}

.addon-info-btn {
    flex-shrink: 0;
    color: var(--sub-primary);
    text-decoration: none;
    line-height: 1;
    font-size: 1rem;
    border: none;
    background: transparent;
}

.addon-info-btn:hover,
.addon-info-btn:focus {
    color: var(--sub-primary);
    opacity: 0.75;
    text-decoration: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .addon-checks-sub {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Summary Section
   ===================================================== */

.summary-card {
    background: linear-gradient(180deg, #fbfcff 0%, #f8fafc 100%);
    border: 1px solid var(--sub-border);
    border-radius: var(--sub-radius);
    padding: 1rem;
}

.summary-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
}

.summary-subtitle {
    font-size: 0.88rem;
    color: var(--sub-text-muted);
    margin-bottom: 0.55rem;
    margin-top: 0.55rem;
    font-style: italic;
}

.summary-group {
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sub-border);
}

.summary-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-group-label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--sub-primary);
    margin-bottom: 0.35rem;
}

.summary-plan-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sub-text);
    margin: 0 0 0.35rem;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
    font-size: 0.84rem;
}

.summary-label {
    color: var(--sub-text-muted);
}

.summary-value {
    font-weight: 500;
    color: var(--sub-text);
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

.summary-actions {
    display: flex;
    gap: 12px;
}

.btn-summary-edit {
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}

.btn-summary-confirm {
    flex: 1;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}

/* =====================================================
   Responsive: Plan cards & addons
   ===================================================== */

@media (max-width: 576px) {
    .plan-cards-sub {
        grid-template-columns: 1fr;
    }

    .summary-row {
        flex-direction: column;
        gap: 1px;
    }

    .summary-value {
        text-align: left;
        max-width: 100%;
    }

    .summary-actions {
        flex-direction: column-reverse;
    }

    .btn-summary-edit,
    .btn-summary-confirm {
        width: 100%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .plan-cards-sub {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =====================================================
   Estimate Section
   ===================================================== */
.sub-section-estimate {
    background: #fcfcfd;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    padding: 0.7rem 0.85rem 0.6rem;
    max-width: 470px;
}
.sub-section-estimate .sub-section-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #44505f;
    margin-bottom: 0.2rem;
}
.sub-section-estimate .sub-section-title i {
    color: #7e8a98;
}
.sub-section-estimate .sub-section-subtitle {
    font-size: 0.74rem;
    color: #7b8794;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}
.estimate-card {
    background: #ffffff;
    border: 1px solid #eceff3;
    border-radius: 7px;
    padding: 0.45rem 0.7rem;
    margin: 0.25rem 0 0;
}
.estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.18rem 0;
    font-size: 0.84rem;
    gap: 0.5rem;
    border-bottom: 1px dashed #f1f3f5;
}
.estimate-row:last-child { border-bottom: none; }
.estimate-row .estimate-label {
    color: #7b8794;
    flex: 1 1 auto;
}
.estimate-row .estimate-value {
    color: #596579;
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}
.estimate-row.estimate-total {
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 0.84rem;
}
.estimate-row.estimate-total .estimate-label strong,
.estimate-row.estimate-total .estimate-value strong {
    font-weight: 500;
}
.estimate-row.estimate-total .estimate-label {
    flex: 0 0 auto;
    color: #7b8794;
}
.estimate-row.estimate-total .estimate-value strong {
    color: #596579;
}
.estimate-row.estimate-total .estimate-value {
    text-align: left;
}

.summary-row.summary-row-total {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #e5e7eb;
}
.summary-row.summary-row-total .summary-label,
.summary-row.summary-row-total .summary-value {
    color: #64748b;
}

.summary-row.summary-row-total .summary-value {
    font-size: 0.9rem;
    font-weight: 600;
}
.summary-booking-disclaimer {
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
    color: #78350f;
    padding: 0.5rem 0.72rem;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.32;
}

/* =====================================================
   Form Sections Grouping (Raggruppamento Visivo)
   ===================================================== */

.form-section {
    background: #f9fafb;
    border-left: 3px solid var(--sub-primary);
    border-radius: 8px;
    padding: 0.85rem;
    margin-bottom: 0.8rem;
}

/* Section color accents (visual grouping, zero-friction) */
.form-section--company {
    background: #f4f7ff;
    border-left-color: #4361ee;
}
.form-section--company .form-section-title i {
    color: #4361ee;
}

.form-section--contact {
    background: #f1fbf8;
    border-left-color: #0ea5a3;
}
.form-section--contact .form-section-title i {
    color: #0ea5a3;
}

.form-section--sector {
    background: #f8f5ff;
    border-left-color: #8b5cf6;
}
.form-section--sector .form-section-title i {
    color: #8b5cf6;
}

.form-section-intro {
    font-size: 0.8rem;
    color: var(--sub-text-muted);
    margin: 0 0 0.6rem;
    line-height: 1.35;
}
.form-section-intro i {
    color: #4361ee;
}

.field-optional {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: lowercase;
    color: #64748b;
    background: #eef1f6;
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 4px;
    vertical-align: middle;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sub-text);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    font-size: 0.9rem;
    color: var(--sub-primary);
}

.form-section .row {
    row-gap: 0.5rem;
}
