/**
 * My AI Worker — Quote Form Styles
 * Used by [aiworker_quote_form] shortcode
 * Lives in plugin: my-aiworker-subscriptions/assets/css/
 */

/* ---- Container ---- */
.maw-quote-container {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* ---- Header ---- */
.maw-quote-header {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 100%);
    color: #fff;
    padding: 36px 40px;
    text-align: center;
    position: relative;
}
.maw-quote-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.maw-quote-header p {
    font-size: 1rem;
    opacity: 0.85;
    color: #fff;
}
.maw-trade-badge {
    display: inline-block;
    background: rgba(0, 207, 253, 0.15);
    color: #00CFFD;
    padding: 4px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
}

/* ---- Form body ---- */
.maw-quote-body {
    padding: 40px;
}

/* ---- Progress Bar ---- */
.maw-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
}
.maw-progress-bar::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
}
.maw-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.maw-step.active {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    color: #00CFFD;
    box-shadow: 0 0 12px rgba(0, 207, 253, 0.3);
}
.maw-step.completed {
    background: #00CFFD;
    color: #1a0a2e;
}

/* ---- Sections ---- */
.maw-section {
    display: none;
    animation: mawFadeIn 0.3s ease;
}
.maw-section.active {
    display: block;
}

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

.maw-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #1a0a2e;
    margin-bottom: 6px;
}
.maw-desc {
    color: #6b7280;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

/* ---- Form fields ---- */
.maw-field {
    margin-bottom: 20px;
}
.maw-field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #2d2d3a;
}
.maw-req {
    color: #D63031;
}
.maw-opt {
    color: #999;
    font-weight: 400;
    font-size: 0.85em;
}

.maw-field input[type="text"],
.maw-field input[type="email"],
.maw-field input[type="tel"],
.maw-field input[type="url"],
.maw-field select,
.maw-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
    color: #2d2d3a;
}
.maw-field input:focus,
.maw-field select:focus,
.maw-field textarea:focus {
    outline: none;
    border-color: #00CFFD;
    box-shadow: 0 0 0 3px rgba(0, 207, 253, 0.1);
}

/* ---- Checkbox / Radio grids ---- */
.maw-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.maw-check-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.92rem;
}
.maw-check-item:hover {
    background: #f0f1f5;
}
.maw-check-item input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #00CFFD;
    cursor: pointer;
}
.maw-check-item.checked {
    background: rgba(0, 207, 253, 0.06);
    border-color: #00CFFD;
}

.maw-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.maw-radio-pill {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}
.maw-radio-pill:hover {
    background: #f0f1f5;
}
.maw-radio-pill input {
    margin-right: 8px;
    accent-color: #00CFFD;
    cursor: pointer;
}
.maw-radio-pill.selected {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    color: #fff;
    border-color: #2d1b69;
}

/* ---- Pain scale ---- */
.maw-pain-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.maw-pain-btn {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.maw-pain-btn:hover {
    background: #f0f1f5;
}
.maw-pain-btn .maw-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a0a2e;
}
.maw-pain-btn .maw-lbl {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}
.maw-pain-btn.selected {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    border-color: #00CFFD;
}
.maw-pain-btn.selected .maw-num {
    color: #00CFFD;
}
.maw-pain-btn.selected .maw-lbl {
    color: rgba(255,255,255,0.7);
}

/* ---- Service cards ---- */
.maw-svc-card {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.maw-svc-card:hover {
    border-color: #00CFFD;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,207,253,0.1);
}
.maw-svc-card.selected {
    border-color: #00CFFD;
    background: rgba(0, 207, 253, 0.04);
}
.maw-svc-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #1a0a2e;
    margin-bottom: 6px;
}
.maw-svc-card p {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.5;
}
.maw-svc-check {
    float: right;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.maw-svc-card.selected .maw-svc-check {
    background: #00CFFD;
}

/* ---- Add-On Divider ---- */
.maw-addon-divider {
    display: flex;
    align-items: center;
    margin: 28px 0 16px;
    gap: 12px;
}
.maw-addon-divider::before,
.maw-addon-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}
.maw-addon-divider span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ---- Add-On Card ---- */
.maw-addon-card {
    position: relative;
    border-style: dashed;
}
.maw-addon-card.selected {
    border-style: solid;
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}
.maw-addon-card.selected .maw-svc-check {
    background: #f59e0b;
}
.maw-addon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.maw-addon-pricing {
    margin-top: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.5;
}
.maw-addon-pricing strong {
    color: #78350f;
    font-size: 0.95rem;
}
.maw-addon-pricing small {
    color: #b45309;
    font-size: 0.78rem;
}

/* ---- Summary Add-On ---- */
.maw-summary-addon-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f59e0b;
    padding: 14px 0 4px;
    margin-top: 4px;
    border-top: 1px dashed #e5e7eb;
}
.maw-summary-addon {
    color: #92400e;
}

/* ---- Summary ---- */
.maw-summary-box {
    background: #f9fafb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}
.maw-summary-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #1a0a2e;
    margin-bottom: 14px;
}
.maw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}
.maw-summary-row:last-child {
    border-bottom: none;
}
.maw-check-mark {
    color: #00CFFD;
    font-weight: 700;
}

.maw-package-box {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    color: #fff;
    padding: 28px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 20px;
}
.maw-package-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #fff;
}
.maw-pkg-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #00CFFD;
}
.maw-pkg-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0;
    color: #fff;
}
.maw-pkg-price span {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
}
.maw-pkg-includes {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 6px;
}

/* ---- Buttons ---- */
.maw-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.maw-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.maw-btn-next {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    color: #fff;
}
.maw-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 27, 105, 0.3);
    color: #fff;
}
.maw-btn-back {
    background: #f3f4f6;
    color: #4b5563;
}
.maw-btn-back:hover {
    background: #e5e7eb;
}
.maw-btn-submit {
    background: linear-gradient(135deg, #D63031, #e74c3c);
    color: #fff;
}
.maw-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 48, 49, 0.3);
    color: #fff;
}

/* ---- Success state ---- */
.maw-success {
    text-align: center;
    padding: 60px 40px;
}
.maw-check-circle {
    width: 80px;
    height: 80px;
    background: rgba(0, 207, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.maw-success h2 {
    font-family: 'Montserrat', sans-serif;
    color: #1a0a2e;
    margin-bottom: 12px;
}
.maw-success p {
    color: #6b7280;
    max-width: 460px;
    margin: 0 auto 28px;
}

/* ---- Next Steps (post-submit) ---- */
.maw-next-steps {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 36px;
    background: #f9fafb;
    border-radius: 14px;
    padding: 28px 32px;
}
.maw-next-steps h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #1a0a2e;
    margin-bottom: 20px;
    text-align: center;
}
.maw-step-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.maw-next-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.maw-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    color: #00CFFD;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.maw-next-step strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #1a0a2e;
    margin-bottom: 4px;
}
.maw-next-step p {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .maw-quote-body {
        padding: 24px;
    }
    .maw-quote-header {
        padding: 28px 24px;
    }
    .maw-quote-header h1 {
        font-size: 1.35rem;
    }
    .maw-check-grid {
        grid-template-columns: 1fr;
    }
    .maw-pain-row {
        flex-wrap: wrap;
    }
    .maw-pain-btn {
        flex: 0 0 calc(33.333% - 6px);
    }
    .maw-buttons {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .maw-btn {
        width: 100%;
        text-align: center;
    }
    .maw-pkg-price {
        font-size: 2.2rem;
    }
}
