/**
 * AV8 LeaseMax Calculator Widget Styles
 * Based on Prototype 6: Aviation Premium Design
 *
 * @package AV8_Elementor_Components
 * @since 1.6.0
 */

/* ============================================
   Variables (AV8 Design System)
   ============================================ */
:root {
    --av8-primary: #1B449D;
    --av8-primary-dark: #0f2a5f;
    --av8-primary-light: #2a5fc9;
    --av8-accent-green: #71B63B;
    --av8-green-light: #8bc653;
    --av8-accent-blue: #00aeff;
    --av8-blue-light: #33c1ff;
    --av8-accent-pink: #ec407a;
    --av8-grey: #C0C0C0;
    --av8-black: #222222;
    --av8-navy: #003366;
    --av8-yellow: #FFC107;
    --av8-orange: #FF9800;
}

/* ============================================
   Main Container
   ============================================ */
.av8-leasemax-calculator {
    font-family: 'Montserrat', Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.av8-leasemax-calculator.has-gradient {
    background: linear-gradient(135deg, var(--av8-navy) 0%, var(--av8-primary) 100%);
    border-radius: 20px;
    padding: 60px;
    color: white;
    box-shadow: 0 20px 60px rgba(27, 68, 157, 0.4);
    position: relative;
    overflow: visible;
}

/* Aviation-themed airplane watermark */
.av8-leasemax-calculator.has-gradient::before {
    content: "✈";
    position: absolute;
    top: 80px;
    right: -60px;
    font-size: 350px;
    opacity: 0.05;
    transform: rotate(-30deg);
    pointer-events: none;
}

/* Bottom gradient overlay */
.av8-leasemax-calculator.has-gradient::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

/* ============================================
   Widget Header
   ============================================ */
.leasemax-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.leasemax-title {
    font-family: 'B612', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.leasemax-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   Search Section
   ============================================ */
.leasemax-search-section {
    max-width: 650px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 100;
}

.leasemax-search-box {
    position: relative;
}

.leasemax-search-input {
    width: 100%;
    padding: 20px 60px 20px 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 17px;
    transition: all 0.3s ease;
}

.has-gradient .leasemax-search-input {
    color: white;
}

.has-gradient .leasemax-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.leasemax-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.leasemax-search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
    pointer-events: none;
}

.leasemax-loading-spinner {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.leasemax-loading-spinner .spinner {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Loading Status Messages */
.leasemax-loading-status {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(27, 68, 157, 0.95) 0%, rgba(39, 94, 197, 0.95) 100%);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.status-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

.status-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Autocomplete Dropdown
   ============================================ */
.leasemax-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--av8-primary);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    max-height: 350px;
    overflow-y: auto;
    z-index: 10000;
    animation: dropdownSlideIn 0.3s ease;
}

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

.autocomplete-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #e9ecef;
    color: var(--av8-black);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item .aircraft-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--av8-primary);
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}

.autocomplete-item .aircraft-details {
    font-size: 0.80rem;
    color: #6c757d;
    line-height: 1.3;
}

.autocomplete-not-found {
    padding: 20px;
    text-align: center;
    background: #fff3cd;
    border-top: 1px solid #ffc107;
    color: #856404;
}

.autocomplete-not-found p {
    margin: 0 0 12px;
}

.autocomplete-not-found button {
    background: var(--av8-primary);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.autocomplete-not-found button:hover {
    background: var(--av8-primary-dark);
}

.autocomplete-loading {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
}

.autocomplete-loading .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e9ecef;
    border-top-color: var(--av8-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.autocomplete-loading p {
    margin: 12px 0 0;
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   Results Container
   ============================================ */
.leasemax-results {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

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

/* ============================================
   Aircraft Display
   ============================================ */
.leasemax-aircraft-display {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.has-glass-effect .leasemax-aircraft-display {
    backdrop-filter: blur(15px);
}

.aircraft-icon {
    font-size: 4rem;
    margin-bottom: 60px;
}

.aircraft-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'B612', sans-serif;
}

.aircraft-category {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

.change-aircraft-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', Arial, sans-serif;
}

.change-aircraft-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   Missing Parameters Alert
   ============================================ */
.leasemax-missing-params {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
    color: #856404;
}

.leasemax-missing-params h4 {
    color: #856404;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.leasemax-missing-params p {
    margin-bottom: 20px;
}

.missing-params-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.missing-params-form .form-field {
    margin-bottom: 0;
}

.missing-params-form .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--av8-black);
    font-size: 0.9rem;
}

.missing-params-form .form-field input,
.missing-params-form .form-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--av8-black);
}

.missing-params-form .form-field input:focus,
.missing-params-form .form-field select:focus {
    outline: none;
    border-color: var(--av8-primary);
}

.missing-params-form .form-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.missing-params-form button[type="submit"] {
    background: var(--av8-accent-green);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.missing-params-form button[type="submit"]:hover {
    background: var(--av8-green-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(113, 182, 59, 0.3);
}

/* ============================================
   Space Type Section
   ============================================ */
.leasemax-space-section {
    margin-bottom: 45px;
}

.leasemax-space-section h4 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 28px;
    font-family: 'B612', sans-serif;
}

.leasemax-space-badges {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.space-badge {
    flex: 1;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    padding: 32px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.space-badge:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.space-badge.selected {
    background: rgba(113, 182, 59, 0.25);
    border-color: var(--av8-accent-green);
    box-shadow: 0 15px 40px rgba(113, 182, 59, 0.4);
    transform: translateY(-8px);
}

.space-badge.recommended {
    position: relative;
}

.space-badge.recommended::before {
    content: "★ BEST VALUE";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--av8-yellow);
    color: var(--av8-black);
    padding: 5px 16px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.badge-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.badge-multiplier {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 16px;
}

.badge-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'B612', sans-serif;
    margin-bottom: 12px;
}

.badge-description {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.4;
}

/* ============================================
   Metrics Display
   ============================================ */
.leasemax-metrics {
    display: flex;
    gap: 30px;
    margin-bottom: 45px;
}

.metric-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 42px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.metric-card.revenue {
    border-color: var(--av8-accent-green);
}

.metric-card.fee {
    border-color: var(--av8-accent-blue);
}

.metric-card.roi {
    border-color: var(--av8-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.metric-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.metric-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'B612', sans-serif;
    line-height: 1;
    margin-bottom: 12px;
}

.metric-note {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Revenue Breakdown Section */
.leasemax-revenue-breakdown {
    background: rgba(113, 182, 59, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(113, 182, 59, 0.3);
    padding: 35px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.leasemax-revenue-breakdown h5 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--av8-green-light);
    text-align: center;
    font-family: 'B612', sans-serif;
}

.leasemax-revenue-component {
    margin-bottom: 30px;
}

.leasemax-revenue-component.leasemax-revenue-total {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.leasemax-component-title {
    font-weight: 600;
    margin-bottom: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.leasemax-component-title.leasemax-total-title {
    font-size: 1.2rem;
}

/* Revenue Slider Styles */
.leasemax-revenue-slider {
    margin: 20px 0;
    position: relative;
}

.leasemax-slider-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    position: relative;
    overflow: visible;
}

.leasemax-slider-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--av8-accent-green) 0%, var(--av8-green-light) 100%);
    border-radius: 6px;
    transition: all 0.5s ease;
}

.leasemax-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
}

.leasemax-slider-label {
    opacity: 0.8;
}

.leasemax-slider-label.leasemax-highlight {
    font-weight: 700;
    opacity: 1;
    color: var(--av8-accent-green);
}

.leasemax-slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.leasemax-slider-marker {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

.leasemax-slider-marker.leasemax-min {
    text-align: left;
    opacity: 0.7;
}

.leasemax-slider-marker.leasemax-max {
    text-align: right;
    opacity: 0.7;
}

.leasemax-slider-marker.leasemax-avg {
    font-weight: 700;
    color: var(--av8-accent-green);
}

/* Range Point Indicators */
.leasemax-range-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--av8-accent-green);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.leasemax-range-point.leasemax-min {
    border-color: rgba(113, 182, 59, 0.8);
}

.leasemax-range-point.leasemax-max {
    border-color: var(--av8-accent-green);
}

/* Range Point Labels (Tooltip Style) */
.leasemax-range-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(113, 182, 59, 0.95) 0%, rgba(139, 198, 83, 0.95) 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Always show labels when data is loaded */
.leasemax-range-point.has-value .leasemax-range-label {
    opacity: 1;
}

/* Brighten label on hover */
.leasemax-range-point:hover .leasemax-range-label {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Pointer arrow for tooltip */
.leasemax-range-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(113, 182, 59, 0.95);
}

/* Different gradient shades for min vs max */
.leasemax-range-point.leasemax-min .leasemax-range-label {
    background: linear-gradient(135deg, rgba(113, 182, 59, 0.85) 0%, rgba(113, 182, 59, 0.75) 100%);
}

.leasemax-range-point.leasemax-min .leasemax-range-label::after {
    border-top-color: rgba(113, 182, 59, 0.85);
}

.leasemax-range-point.leasemax-max .leasemax-range-label {
    background: linear-gradient(135deg, rgba(113, 182, 59, 1) 0%, rgba(139, 198, 83, 1) 100%);
}

.leasemax-range-point.leasemax-max .leasemax-range-label::after {
    border-top-color: rgba(113, 182, 59, 1);
}

/* Metrics Row (RCR and ROI) */
.leasemax-metrics-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.leasemax-rcr-section,
.leasemax-roi-section-mini {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.leasemax-rcr-section {
    border-color: rgba(0, 174, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 174, 255, 0.1) 0%, rgba(0, 174, 255, 0.05) 100%);
}

.leasemax-rcr-section:hover,
.leasemax-roi-section-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.leasemax-metric-title {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.leasemax-metric-value-display {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--av8-yellow);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 10px;
    font-family: 'B612', sans-serif;
}

.leasemax-rcr-section .leasemax-metric-value-display {
    color: var(--av8-accent-blue);
    text-shadow: 0 0 20px rgba(0, 174, 255, 0.3);
}

.leasemax-metric-note-small {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.4;
}

/* ============================================
   Details Card
   ============================================ */
.leasemax-details-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 38px;
    margin-bottom: 35px;
}

.leasemax-details-card h5 {
    font-size: 1.4rem;
    margin-bottom: 32px;
    text-align: center;
    font-family: 'B612', sans-serif;
}

.details-specs-section,
.details-breakdown-section {
    margin-bottom: 35px;
}

.details-specs-section:last-child,
.details-breakdown-section:last-child {
    margin-bottom: 0;
}

.details-specs-section h6,
.details-breakdown-section h6 {
    font-size: 1.15rem;
    margin-bottom: 22px;
    opacity: 0.95;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.spec-item {
    text-align: center;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.spec-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.spec-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-list {
    margin-top: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.15rem;
    padding-top: 22px;
    margin-top: 12px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.breakdown-label {
    opacity: 0.9;
}

.breakdown-value {
    font-weight: 600;
}

/* ============================================
   Action Buttons
   ============================================ */
.leasemax-action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn {
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.action-btn.primary {
    background: var(--av8-accent-blue);
    color: white;
}

.action-btn.primary:hover {
    background: var(--av8-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Specific button styles */
.print-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.print-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.add-tenant-btn {
    background: var(--av8-accent-green);
    color: white;
}

.add-tenant-btn:hover {
    background: var(--av8-green-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(113, 182, 59, 0.4);
}

.planemax-btn {
    background: var(--av8-accent-blue);
    color: white;
}

.planemax-btn:hover {
    background: var(--av8-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 174, 255, 0.4);
}

/* ============================================
   Add Aircraft Modal
   ============================================ */
.leasemax-add-aircraft-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: var(--av8-black);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--av8-grey);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--av8-black);
}

.modal-content h4 {
    color: var(--av8-primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.add-aircraft-form .form-field {
    margin-bottom: 20px;
}

.add-aircraft-form .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--av8-black);
}

.add-aircraft-form .form-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.add-aircraft-form .form-field input:focus {
    outline: none;
    border-color: var(--av8-primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.form-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', Arial, sans-serif;
}

.btn-cancel {
    background: #e9ecef;
    color: var(--av8-black);
    border: none;
}

.btn-cancel:hover {
    background: #dee2e6;
}

.btn-submit {
    background: var(--av8-primary);
    color: white;
    border: none;
}

.btn-submit:hover {
    background: var(--av8-primary-dark);
}

.form-loading {
    text-align: center;
    padding: 30px 0;
    color: var(--av8-grey);
}

.form-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: var(--av8-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

.form-loading p {
    font-size: 0.9rem;
}

/* ============================================
   Error Messages
   ============================================ */
.leasemax-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    border-radius: 10px;
    padding: 18px 50px 18px 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-icon {
    font-size: 1.3rem;
    margin-right: 12px;
}

.error-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #721c24;
    cursor: pointer;
    line-height: 1;
}

.error-close:hover {
    opacity: 0.7;
}

/* ============================================
   Elementor Preview Notice
   ============================================ */
.elementor-preview-notice {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 30px;
}

.elementor-preview-notice p {
    margin: 8px 0;
    font-size: 1.1rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .av8-leasemax-calculator.has-gradient {
        padding: 40px 30px;
    }

    .leasemax-space-badges {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }

    .space-badge {
        max-width: 100%;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .av8-leasemax-calculator.has-gradient {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .leasemax-title {
        font-size: 2rem;
    }

    .leasemax-subtitle {
        font-size: 1rem;
    }

    .aircraft-name {
        font-size: 1.8rem;
    }

    .leasemax-metrics {
        flex-direction: column;
    }

    .metric-value {
        font-size: 2.8rem;
    }

    .leasemax-metrics-row {
        flex-direction: column;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .leasemax-action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .missing-params-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .av8-leasemax-calculator.has-gradient {
        padding: 25px 15px;
    }

    .leasemax-title {
        font-size: 1.6rem;
    }

    .badge-price {
        font-size: 1.6rem;
    }

    .metric-value {
        font-size: 2.2rem;
    }

    .leasemax-error-message {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}
