/* Smart Button & Lead Form Frontend Styles */

.bs-button-wrapper {
    margin: 15px 0 20px 0;
    display: block;
    width: 100%;
}

.bs-smart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    background-color: var(--bs-btn-bg, #e60023);
    color: var(--bs-btn-text, #ffffff);
    border: none;
    border-radius: var(--bs-btn-radius, 8px);
    padding: var(--bs-btn-pad-v, 12px) var(--bs-btn-pad-h, 24px);
    font-size: var(--bs-btn-font-size, 16px);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.25);
    line-height: 1.3;
    outline: none;
}

.bs-smart-button:hover {
    background-color: var(--bs-btn-hover, #c4001d);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 35, 0.35);
}

.bs-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bs-btn-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: currentColor;
}

.bs-btn-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.bs-btn-main-text {
    font-size: var(--bs-btn-font-size, 16px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bs-btn-sub-text {
    font-size: calc(var(--bs-btn-font-size, 16px) - 4px);
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

/* Animations */
.bs-anim-pulse {
    animation: bsPulse 2s infinite;
}

@keyframes bsPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 35, 0.5); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(230, 0, 35, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 35, 0); }
}

.bs-anim-bounce {
    animation: bsBounce 2s infinite;
}

@keyframes bsBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.bs-anim-glow {
    animation: bsGlow 2s infinite alternate;
}

@keyframes bsGlow {
    from { box-shadow: 0 0 5px var(--bs-btn-bg, #e60023); }
    to { box-shadow: 0 0 20px var(--bs-btn-bg, #e60023); }
}

/* Modal Popup Overlay */
.bs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: bsFadeIn 0.3s ease;
}

@keyframes bsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bs-modal-dialog {
    background: #ffffff;
    border-radius: 14px;
    width: var(--bs-modal-width, 550px);
    max-width: 95vw;
    max-height: var(--bs-modal-max-height, 90vh);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
    animation: bsZoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: var(--bs-modal-padding, 20px 24px);
    box-sizing: border-box;
    margin: auto;
}

@keyframes bsZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.bs-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f1;
    border: none;
    font-size: 20px;
    line-height: 30px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-modal-close:hover {
    background: var(--bs-primary, #e60023);
    color: #ffffff;
}

.bs-modal-header {
    margin-bottom: 12px;
    text-align: center;
}

.bs-modal-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.bs-modal-subtitle {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.3;
}

.bs-modal-product-badge {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

/* Common Form Fields - Compact Layout */
.bs-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bs-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.bs-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.bs-required {
    color: #e60023;
    margin-left: 2px;
}

.bs-input, .bs-select, .bs-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
}

.bs-textarea {
    resize: vertical;
    min-height: 54px;
}

.bs-input:focus, .bs-select:focus, .bs-textarea:focus {
    border-color: var(--bs-primary, #e60023);
    box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.15);
}

.bs-submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--bs-primary, #e60023);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(230, 0, 35, 0.25);
    margin-top: 4px;
}

.bs-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.bs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.bs-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: bsRotation 1s linear infinite;
}

@keyframes bsRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Response Message Toast */
.bs-form-response-msg {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
}

.bs-form-response-msg.success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.bs-form-response-msg.error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* Inline Form Bottom of Product (Requirement 4) */
.bs-inline-form-container {
    background: #ffffff;
    border: 2px dashed var(--bs-primary, #e60023);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 25px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.bs-inline-form-header {
    text-align: center;
    margin-bottom: 14px;
}

.bs-inline-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.bs-inline-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}
