/* License Calculator Styles */

.lc-calculator {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 900px) {
    .lc-calculator {
        grid-template-columns: 1fr;
    }
    .lc-summary {
        position: static !important;
    }
}

/* Section blocks */
.lc-section {
    margin-bottom: 40px;
}

.lc-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-heading, #1a1a1a);
}

.lc-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary, #b4ff00);
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 700;
    margin-right: 10px;
}

/* Tier & Support Picker (tile-based selection) */
.lc-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.lc-picker-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    text-align: center;
}

.lc-picker-option:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

.lc-picker-option.active {
    border-color: var(--color-primary, #b4ff00);
    background: rgba(180, 255, 0, 0.08);
}

.lc-picker-option-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.lc-picker-option-subtitle {
    font-size: 0.8rem;
    opacity: 0.7;
}

.lc-picker-option-listprice {
    font-size: 0.85rem;
    text-decoration: line-through;
    opacity: 0.5;
    margin-top: 6px;
}

.lc-picker-option-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary, #b4ff00);
    margin-top: 2px;
}

.lc-picker-option-discount {
    font-size: 0.7rem;
    color: var(--color-primary, #b4ff00);
    opacity: 0.8;
    margin-top: 2px;
}

.lc-picker-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.lc-picker-option .lc-on-request-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    opacity: 0.8;
}

/* Tenant counter */
.lc-tenant-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.lc-counter-btn:hover {
    border-color: var(--color-primary, #b4ff00);
    background: rgba(180, 255, 0, 0.1);
}

.lc-counter-value {
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.lc-tenant-hint {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 8px;
}

/* Add-on list */
.lc-addon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc-addon-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    gap: 12px;
}

.lc-addon-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.lc-addon-item.active {
    border-color: var(--color-primary, #b4ff00);
    background: rgba(180, 255, 0, 0.06);
}

.lc-addon-item.unavailable {
    opacity: 0.35;
    cursor: not-allowed;
}

.lc-addon-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lc-addon-item.active .lc-addon-checkbox {
    background: var(--color-primary, #b4ff00);
    border-color: var(--color-primary, #b4ff00);
}

.lc-addon-item.active .lc-addon-checkbox::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.lc-addon-info {
    flex: 1;
}

.lc-addon-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.lc-addon-vendor {
    font-size: 0.8rem;
    opacity: 0.6;
}

.lc-addon-desc {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 2px;
    line-height: 1.4;
}

.lc-addon-price {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.lc-addon-unavailable-text {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

/* Own counter add-on sub-input */
.lc-addon-counter-input {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
}

.lc-addon-item.active .lc-addon-counter-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-addon-counter-input label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.lc-addon-counter-input input {
    width: 120px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.9rem;
}

/* Sticky Price Summary (72px navbar + 24px gap) */
.lc-summary {
    position: sticky;
    top: 96px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.lc-summary-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lc-summary-items {
    margin-bottom: 16px;
}

.lc-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.lc-summary-item-name {
    opacity: 0.85;
}

.lc-summary-item-price {
    font-weight: 500;
}

.lc-summary-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.lc-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
}

.lc-summary-total.list-price {
    text-decoration: line-through;
    opacity: 0.5;
}

.lc-summary-total.discount {
    color: var(--color-primary, #b4ff00);
}

.lc-summary-total.final-price {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 8px 0;
}

.lc-summary-savings {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-primary, #b4ff00);
    margin-top: 8px;
    font-weight: 500;
}

.lc-summary-item-discount-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary, #b4ff00);
    background: rgba(180, 255, 0, 0.1);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.lc-summary-discount-note {
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: right;
    padding-bottom: 4px;
}

.lc-summary-cta {
    margin-top: 20px;
}

.lc-summary-cta .btn-donamic-primary {
    width: 100%;
    text-align: center;
}

/* On-request message */
.lc-on-request-message {
    text-align: center;
    padding: 20px 16px;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* Requested objects input (on-request tiers) */
.lc-requested-objects {
    padding: 0 4px 16px;
}

.lc-requested-objects-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.lc-requested-objects-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.lc-requested-objects-input:focus {
    outline: none;
    border-color: var(--color-primary, #b4ff00);
}

.lc-requested-objects-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.lc-requested-objects-hint {
    display: block;
    font-size: 0.78rem;
    opacity: 0.5;
    margin-top: 6px;
}

/* Contact Form (slide-down) */
.lc-contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    display: none;
    color: #fff;
}

.lc-contact-form.visible {
    display: block;
}

.lc-contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .lc-contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.lc-contact-form-grid .full-width {
    grid-column: 1 / -1;
}

/* Privacy checkbox */
.lc-privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.lc-privacy-checkbox input {
    margin-top: 3px;
    accent-color: var(--color-primary, #b4ff00);
}

/* Submit status */
.lc-submit-error {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 12px;
    display: none;
}

.lc-submit-loading {
    display: none;
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

/* Empty state for summary when no tier selected */
.lc-summary-empty {
    text-align: center;
    padding: 20px 0;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Quote prefill banner */
.lc-quote-prefill-banner {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: rgba(255, 152, 0, 0.12);
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================================================================
   FORMULA MODE (JDisc) - Device inputs, license types
   ================================================================== */

/* 3-column grid for license type picker */
.lc-picker-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .lc-picker-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Device input grid */
.lc-device-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-device-row {
    display: grid;
    grid-template-columns: 1fr 140px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s;
}

.lc-device-row:focus-within {
    border-color: rgba(180, 255, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .lc-device-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .lc-device-points {
        text-align: left !important;
    }
}

.lc-device-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-device-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.lc-device-multiplier {
    font-size: 0.78rem;
    opacity: 0.5;
}

.lc-device-input-wrap {
    display: flex;
    align-items: center;
}

.lc-device-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.lc-device-input::-webkit-outer-spin-button,
.lc-device-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lc-device-input:focus {
    outline: none;
    border-color: var(--color-primary, #b4ff00);
}

.lc-device-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.lc-device-points {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    color: var(--color-primary, #b4ff00);
    opacity: 0.9;
    white-space: nowrap;
}

/* Total credits bar */
.lc-points-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(180, 255, 0, 0.06);
    border: 1px solid rgba(180, 255, 0, 0.15);
    font-size: 0.95rem;
    margin-top: 4px;
}

.lc-points-total strong {
    font-size: 1.1rem;
    color: var(--color-primary, #b4ff00);
}

/* License type badge */
.lc-license-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(180, 255, 0, 0.15);
    color: var(--color-primary, #b4ff00);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

/* Support option for permanent license */
.lc-formula-support-option {
    margin-top: 16px;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.lc-formula-support-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.lc-formula-support-label input[type="checkbox"] {
    accent-color: var(--color-primary, #b4ff00);
    width: 18px;
    height: 18px;
}

.lc-formula-support-price {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Device summary in price panel */
.lc-summary-device-info {
    font-size: 0.85rem;
    opacity: 0.75;
    padding: 4px 0 8px;
}

.lc-summary-device-row {
    padding: 2px 0;
}

.lc-summary-device-total {
    font-weight: 600;
    color: var(--color-primary, #b4ff00);
    margin-top: 4px;
    opacity: 1;
}
