/* Motive Cost Estimator Stylesheet */
.motive-estimator-plugin-container {
    --primary: #dc2626;
    --secondary: #f43f5e;
    --success: #25d366;
    --text-muted: #94a3b8;
    --text-secondary: #cbd5e1;
    --bg-glass: rgba(15, 6, 8, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.15s ease;
    
    max-width: 750px;
    margin: 0 auto;
    font-family: 'Outfit', 'Cairo', sans-serif;
    color: #fff;
}

.motive-estimator-plugin-container * {
    box-sizing: border-box;
}

.motive-estimator-plugin-container .calculator-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.motive-estimator-plugin-container .calc-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.motive-estimator-plugin-container .step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.motive-estimator-plugin-container .step-indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.motive-estimator-plugin-container .step-indicator.completed {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.motive-estimator-plugin-container .step-line {
    flex-grow: 1;
    max-width: 80px;
    height: 2px;
    background: var(--border-glass);
    margin: 0 10px;
}

.motive-estimator-plugin-container .calc-step {
    display: none;
}

.motive-estimator-plugin-container .calc-step.active {
    display: block;
    animation: motiveFadeIn 0.4s ease-out;
}

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

.motive-estimator-plugin-container .calc-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

/* Service Selector Grid (Step 1) */
.motive-estimator-plugin-container .service-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.motive-estimator-plugin-container .service-option-label {
    cursor: pointer;
}

.motive-estimator-plugin-container .service-option-label input[type="radio"] {
    display: none;
}

.motive-estimator-plugin-container .service-option-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.motive-estimator-plugin-container .service-option-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.15);
}

.motive-estimator-plugin-container .service-option-label input[type="radio"]:checked + .service-option-card {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(220, 38, 38, 0.15);
}

.motive-estimator-plugin-container .option-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.motive-estimator-plugin-container .service-option-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

/* Dynamic Options Panel (Step 2) */
.motive-estimator-plugin-container .dynamic-options-panel {
    display: none;
}

.motive-estimator-plugin-container .dynamic-options-panel.active {
    display: block;
}

.motive-estimator-plugin-container .option-row {
    margin-bottom: 2.2rem;
}

.motive-estimator-plugin-container .option-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.motive-estimator-plugin-container .option-label-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.motive-estimator-plugin-container .option-value-display {
    font-weight: 700;
    color: var(--secondary);
    background: rgba(244, 63, 94, 0.1);
    padding: 0.2rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Styling range slider */
.motive-estimator-plugin-container .calc-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 10px 0;
}

.motive-estimator-plugin-container .calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    transition: transform 0.1s;
}

.motive-estimator-plugin-container .calc-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Switch styling */
.motive-estimator-plugin-container .toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.motive-estimator-plugin-container .toggle-info-wrapper {
    text-align: left;
}

.rtl-layout .motive-estimator-plugin-container .toggle-info-wrapper,
[dir="rtl"] .motive-estimator-plugin-container .toggle-info-wrapper {
    text-align: right;
}

.motive-estimator-plugin-container .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.motive-estimator-plugin-container .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.motive-estimator-plugin-container .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    border: 1.5px solid #0f172a;
    transition: .3s;
}

.motive-estimator-plugin-container .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2.5px;
    bottom: 2.5px;
    background-color: white;
    border: 1.5px solid #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: .3s;
}

.motive-estimator-plugin-container input:checked + .slider {
    background-color: var(--primary);
}

.motive-estimator-plugin-container input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

.motive-estimator-plugin-container input:checked + .slider:before {
    transform: translateX(24px);
}

.motive-estimator-plugin-container .slider.round {
    border-radius: 34px;
}

.motive-estimator-plugin-container .slider.round:before {
    border-radius: 50%;
}

/* Checkbox Options Grid */
.motive-estimator-plugin-container .checkbox-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.motive-estimator-plugin-container .checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.motive-estimator-plugin-container .checkbox-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.motive-estimator-plugin-container .checkbox-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Radio Options Column */
.motive-estimator-plugin-container .radio-options-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.motive-estimator-plugin-container .radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.motive-estimator-plugin-container .radio-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.motive-estimator-plugin-container .radio-option input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Step 3 Results */
.motive-estimator-plugin-container .calc-result-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.motive-estimator-plugin-container .result-number-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.motive-estimator-plugin-container .result-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.motive-estimator-plugin-container .result-range {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f87171 0%, #f43f5e 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.motive-estimator-plugin-container .result-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.motive-estimator-plugin-container .contact-details-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.motive-estimator-plugin-container .calc-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    outline: none;
    text-align: center;
    transition: var(--transition-fast);
}

.motive-estimator-plugin-container .calc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.15);
}

/* Button Whatsapp */
.motive-estimator-plugin-container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: inherit;
}

.motive-estimator-plugin-container .btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    font-weight: bold;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.motive-estimator-plugin-container .btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.motive-estimator-plugin-container .btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Controls */
.motive-estimator-plugin-container .calc-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.motive-estimator-plugin-container .btn-calc-control {
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    transition: var(--transition-fast);
}

.motive-estimator-plugin-container .btn-calc-control:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.motive-estimator-plugin-container .btn-calc-control.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.motive-estimator-plugin-container .btn-calc-control.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
}

.motive-estimator-plugin-container .btn-calc-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Language Toggles visibility */
html[lang="en"] .motive-estimator-plugin-container .lang-ar-only {
    display: none !important;
}
html[lang="ar"] .motive-estimator-plugin-container .lang-en-only {
    display: none !important;
}

/* Custom choice icon styles */
.motive-estimator-plugin-container .checkbox-option svg,
.motive-estimator-plugin-container .radio-option svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}
