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

:root {
    --behs-primary: #3b82f6;
    --behs-primary-hover: #2563eb;
    --behs-bg: #ffffff;
    --behs-text: #1f2937;
    --behs-text-light: #6b7280;
    --behs-border: #e5e7eb;
    --behs-radius: 16px;
    --behs-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Open Button */
.behs-orcamento-btn {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--behs-primary), #60a5fa);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.behs-orcamento-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Overlay */
.behs-orcamento-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.behs-orcamento-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.behs-orcamento-popup {
    font-family: 'Outfit', sans-serif;
    background: var(--behs-bg);
    width: 90%;
    max-width: 450px;
    border-radius: var(--behs-radius);
    box-shadow: var(--behs-shadow);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    color: var(--behs-text);
}

.behs-orcamento-overlay.active .behs-orcamento-popup {
    transform: scale(1) translateY(0);
}

/* Close Button */
.behs-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--behs-text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}
.behs-close-btn:hover {
    color: #ef4444;
}

/* Form Container & Steps */
.behs-form-container {
    position: relative;
    padding: 40px 30px;
    min-height: 350px;
}

.behs-step {
    position: absolute;
    top: 40px;
    left: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.behs-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    top: 0; left: 0; right: 0;
}

.behs-step.slide-out-left {
    transform: translateX(-20px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.behs-step.slide-in-right {
    transform: translateX(20px);
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

/* Typography */
.behs-step h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}
.behs-step p {
    margin: 0 0 25px 0;
    color: var(--behs-text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Inputs */
.behs-input-group {
    margin-bottom: 15px;
}
.behs-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--behs-text);
}
.behs-input-group input,
.behs-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--behs-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f9fafb;
    box-sizing: border-box;
}
.behs-input-group input:focus,
.behs-input-group textarea:focus {
    outline: none;
    border-color: var(--behs-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

/* Radio Options */
.behs-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}
.behs-option-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--behs-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.behs-option-card input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--behs-primary);
    transform: scale(1.2);
}
.behs-option-card:has(input[type="radio"]:checked) {
    border-color: var(--behs-primary);
    background: rgba(59, 130, 246, 0.05);
}
.behs-option-card span {
    font-size: 16px;
    font-weight: 600;
}

/* Actions (Buttons) */
.behs-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.behs-btn-next,
.behs-btn-submit {
    background: var(--behs-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
.behs-actions .behs-btn-next,
.behs-actions .behs-btn-submit {
    width: auto;
    flex: 1;
    margin-left: 10px;
}
.behs-btn-next:hover,
.behs-btn-submit:hover {
    background: var(--behs-primary-hover);
}

.behs-btn-prev {
    background: #f3f4f6;
    color: var(--behs-text);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.behs-btn-prev:hover {
    background: #e5e7eb;
}

/* Success Step */
.behs-step-success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}
.behs-success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Loading State */
.behs-loading {
    opacity: 0.7;
    pointer-events: none;
}
