/* --- CSS Reset for Widget Buttons --- */
.scc-widget-scoped button.scc-btn {
    background: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

/* --- Base Styles --- */
.scc-widget-scoped {
    /* Styles for the main container */
}

.scc-widget-scoped .scc-widget-title {
    margin-top: 0;
    margin-bottom: 25px; 
    text-align: center;
    font-size: 1.8em; 
    /* color controlled by Elementor */
}

.scc-widget-scoped .scc-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    padding: 15px 0; 
    border-bottom: 1px dashed #444; 
}

.scc-widget-scoped .scc-item label {
    /* Color and Typography controlled by Elementor */
    font-size: 1em;
}

/* --- Base Options (Dropdown) - Step 1 --- */
.scc-widget-scoped .scc-base-options-item {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 15px; 
}
.scc-widget-scoped .scc-select-input {
    font-family: inherit; 
    font-weight: 500;
    width: 100%;
    padding: 10px 15px; 
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    text-align: right;
    direction: rtl;
    /* Colors controlled by Elementor */
}

/* --- Step 2 & 3 Options (Toggles) --- */
.scc-widget-scoped .scc-label-group {
    display: flex;
    flex-direction: column;
    max-width: 70%; 
    text-align: right;
}

.scc-widget-scoped .scc-option-description {
    font-size: 0.85em;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.5;
}

.scc-widget-scoped .scc-additional-options.scc-columns-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px; 
}

/* --- Toggle/Switch --- */
.scc-widget-scoped .scc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    direction: ltr; 
}

.scc-widget-scoped .scc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scc-widget-scoped .scc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border-radius: 28px;
}

.scc-widget-scoped .scc-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white; 
    transition: .4s;
    border-radius: 50%;
    transform: translateX(0);
}

.scc-widget-scoped input.scc-toggle-input:checked + .scc-slider:before {
    transform: translateX(22px); 
}

/* --- Multi-Step & Form Wrapper --- */
.scc-widget-scoped .scc-form-wrapper {
    display: flex;
    flex-direction: column;
}
.scc-widget-scoped .scc-step-container {
    padding: 10px 0;
    display: flex; /* Ensure display is flex */
    flex-direction: column; 
    animation: fadeIn 0.5s ease-in-out;
}
.scc-widget-scoped .scc-step-title {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

/* --- Step Footer --- */
.scc-widget-scoped .scc-step-footer {
    display: flex;
    flex-direction: column; 
    margin-top: 30px;
    padding-top: 20px;
}

/* Progress Bar */
.scc-widget-scoped .scc-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    position: relative;
    padding: 0 20px;
    order: 1; 
}
.scc-widget-scoped .scc-progress-bar::before {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    max-width: 200px; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.scc-widget-scoped .scc-step-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    transition: background 0.3s, border 0.3s;
    z-index: 2;
    border: 3px solid #111; 
}
.scc-widget-scoped .scc-step-dot.active {
    border-width: 3px;
    border-style: solid;
}

.scc-widget-scoped .scc-navigation-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    order: 2;
}

.scc-widget-scoped .scc-footer-placeholder {
    min-width: 1px;
    visibility: hidden;
    height: 0;
}

.scc-widget-scoped .scc-btn {
    padding: 10px 25px !important;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s, transform 0.1s, opacity 0.3s;
}
.scc-widget-scoped .scc-next-btn:hover,
.scc-widget-scoped .scc-submit-btn:hover {
    transform: translateY(-1px);
}
.scc-widget-scoped .scc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: translateY(0);
}

/* --- Total Cost --- */
.scc-widget-scoped .scc-total-cost.scc-total-prominent {
    margin: 10px auto 30px; 
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-width: 2px;
    border-style: solid; 
    border-radius: 10px;
    font-size: 1.5em; 
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
    width: 100%;
}

.scc-widget-scoped .scc-total-text {
    font-weight: 500;
}

.scc-widget-scoped .scc-total-amount {
    font-size: 1.5em; 
    margin: 0 10px;
    transition: all 0.3s;
}
.scc-widget-scoped .scc-total-amount.scc-updating {
    opacity: 0.5; 
    transform: scale(1.05);
}

.scc-widget-scoped .scc-currency-text {
    font-size: 0.7em;
}

/* --- Contact Form & Feedback Styles --- */
.scc-widget-scoped .scc-contact-form {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scc-widget-scoped .scc-form-group {
    display: flex;
    flex-direction: column;
    text-align: right;
    color:#fff;
}

.scc-widget-scoped .scc-form-group label {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.scc-widget-scoped .scc-contact-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.scc-widget-scoped .scc-comments-input {
    resize: vertical;
    min-height: 80px;
}

.scc-widget-scoped .scc-contact-input:focus {
    outline: none;
    border-color: #0F8DF5;
    box-shadow: 0 0 0 3px rgba(15, 141, 245, 0.3);
}

.scc-widget-scoped .scc-contact-input.scc-error {
    border-color: #d32f2f !important;
}

.scc-widget-scoped .scc-submission-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none; 
}

.scc-widget-scoped .scc-submission-feedback p {
    margin: 0;
    font-weight: bold;
}

.scc-widget-scoped .scc-success-msg {
    color: #38c172;
}

.scc-widget-scoped .scc-error-msg {
    color: #d32f2f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive Styles for Mobile --- */
@media (max-width: 767px) {
    .scc-widget-scoped .scc-additional-options.scc-columns-two {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 15px 0;
    }

    .scc-widget-scoped  {
        max-width: 100%;
    }
    .scc-label-group {
        max-width: 80%
    }
}