/* ======================================
   SONU CALCULATORS - Frontend Styles
   Version: 10.0.0
   Author: Sonu Rajpoot
====================================== */

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

.sonu-calc-wrap {
    font-family: 'Poppins', sans-serif;
    max-width: 680px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 60px rgba(99, 102, 241, 0.12);
/*     overflow: hidden; */
    border: 1px solid rgba(99,102,241,0.1);
}

/* Header */
.sonu-calc-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 32px 36px;
    text-align: center;
    color: #fff;
}
.sonu-leads-wrap .sonu-calc-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}
.sonu-calc-icon {
    font-size: 42px;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.sonu-calc-header h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff !important;
}
.sonu-calc-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 14px;
    color: #fff !important;
}

/* Body */
.sonu-calc-body {
    padding: 32px 36px;
}

/* Form Rows */
.sonu-form-row {
    margin-bottom: 18px;
}
.sonu-form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sonu-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sonu-field-group.full-width {
    grid-column: 1/-1;
}

.sonu-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sonu-required {
    color: #ef4444;
    font-weight: 700;
    font-size: 15px;
}

.sonu-field-group input[type="text"],
.sonu-field-group input[type="email"],
.sonu-field-group input[type="tel"],
.sonu-field-group input[type="number"],
.sonu-field-group select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
}
.sonu-field-group input:focus,
.sonu-field-group select:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.sonu-field-group input.sonu-error,
.sonu-field-group select.sonu-error {
    border-color: #ef4444 !important;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.sonu-field-group small {
    font-size: 11px;
    color: #9ca3af;
}

/* Select Wrap */
.sonu-select-wrap {
    position: relative;
}
.sonu-select-wrap::after {
    content: '▼';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9ca3af;
    pointer-events: none;
}
.sonu-select-wrap select {
    appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

/* Number Input */
.sonu-number-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}
.sonu-number-input button {
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 44px;
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sonu-number-input button:hover {
    background: #e0e7ff;
}
.sonu-number-input input {
    border: none !important;
    border-radius: 0 !important;
    text-align: center;
    box-shadow: none !important;
    background: transparent !important;
    flex: 1;
    min-width: 0;
}

/* Info Box */
.sonu-info-box {
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #5b21b6;
    margin-bottom: 16px;
    line-height: 1.6;
}
.sonu-info-box.landing {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    color: #92400e;
}

/* Price Box */
.sonu-price-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    animation: sonuFadeIn 0.4s ease;
}
.sonu-price-breakdown {
    font-size: 13px;
    color: #374151;
    line-height: 2;
    margin-bottom: 12px;
}
.sonu-price-breakdown span {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px dashed #bbf7d0;
}
.sonu-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px solid #86efac;
}
.sonu-price-total span {
    font-size: 15px;
    font-weight: 600;
    color: #166534;
}
.sonu-price-total strong {
    font-size: 28px;
    font-weight: 800;
    color: #15803d;
    letter-spacing: -1px;
}

/* Leads Result */
.sonu-leads-result-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #93c5fd;
    border-radius: 14px;
    padding: 24px;
    margin: 20px 0;
    animation: sonuFadeIn 0.4s ease;
}
.sonu-leads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}
.sonu-lead-stat {
    text-align: center;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 16px 12px;
}
.sonu-lead-stat.highlight {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.sonu-lead-num {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #1e40af;
    letter-spacing: -1px;
}
.sonu-lead-stat.highlight .sonu-lead-num {
    color: #fff;
}
.sonu-lead-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.sonu-lead-stat.highlight .sonu-lead-label {
    color: rgba(255,255,255,0.85);
}
.sonu-leads-note {
    font-size: 12px;
    color: #1e40af;
    text-align: center;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 8px 12px;
}

/* Budget Input */
.sonu-budget-input {
    position: relative;
}
.sonu-currency {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #6366f1;
    font-size: 15px;
    z-index: 1;
}
.sonu-budget-input input {
    padding-left: 30px !important;
}

/* Divider */
.sonu-divider {
    text-align: center;
    position: relative;
    margin: 24px 0 20px;
}
.sonu-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}
.sonu-divider span {
    background: #fff;
    position: relative;
    padding: 0 14px;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alert */
.sonu-alert-required {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Submit Button */
.sonu-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    letter-spacing: 0.3px;
}
.sonu-submit-btn.leads-btn {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
}
.sonu-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.35);
}
.sonu-submit-btn:active {
    transform: translateY(0);
}
.sonu-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Success */
.sonu-success-msg {
    margin-top: 20px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 24px 24px;
    text-align: center;
    color: #fff!important;
    animation: sonuFadeIn 0.5s ease;
}
.sonu-success-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sonu-success-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 4px;
}
.sonu-success-msg strong {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: block;
}
.sonu-success-msg p {
    font-size: 14px;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}
.sonu-success-msg small {
    font-size: 13px;
    color: #fff;
    margin-top: 4px;
    display: block;
}

/* Animations */
@keyframes sonuFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sonu-type-opts {
    animation: sonuFadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
    .sonu-calc-body { padding: 24px 20px; }
    .sonu-calc-header { padding: 24px 20px; }
    .sonu-form-row.two-col { grid-template-columns: 1fr; }
    .sonu-leads-grid { grid-template-columns: 1fr; }
    .sonu-price-total strong { font-size: 22px; }
}

/* ======================================
   LOCK OVERLAY - Step 2 locked state
====================================== */
.sonu-step-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6366f1;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sonu-step-label::before {
    content: '1';
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #6366f1;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    text-align: center;
    line-height: 22px;
    font-weight: 800;
}

.sonu-calc-section {
    position: relative;
    margin-top: 4px;
    transition: opacity 0.25s ease;
}

/* Locked overlay — hidden, JS handles locking via disabled + opacity */
.sonu-locked-overlay {
    display: none !important;
}

/* When parent has .sonu-locked class — dim Step 2 visually */
.sonu-calc-section.sonu-locked {
    opacity: 0.5;
    pointer-events: none;
}

/* Unlocked — fully active */
.sonu-calc-section:not(.sonu-locked) {
    opacity: 1;
    pointer-events: auto;
}
