/* Façade Calculator Plugin - Calculator Widget Styles (Mobile-First) */

/* ===== Save Calculation Box (Contact Step) ===== */
.fc-save-calculation-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fc-save-box-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.fc-save-box-content {
    flex: 1;
}

.fc-save-box-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0c4a6e;
}

.fc-save-box-content p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.fc-save-checkbox {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.fc-save-checkbox:hover {
    border-color: #0ea5e9;
    background: #fafafa;
}

.fc-save-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
    cursor: pointer;
    flex-shrink: 0;
}

.fc-save-checkbox span {
    font-size: 13px;
    color: #0c4a6e;
    font-weight: 500;
}

.fc-save-checkbox input[type="checkbox"]:checked + span {
    color: #0c4a6e;
    font-weight: 600;
}

.fc-save-box-success {
    font-size: 14px;
    font-weight: 500;
    color: #065f46;
    padding: 4px 0 0;
}

.fc-save-calculation-box.saved {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
}

.fc-save-calculation-box.saved .fc-save-box-icon {
    color: #059669;
    background: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.fc-save-calculation-box.saved .fc-save-box-content {
    display: none;
}

.fc-save-calculation-box.saved .fc-save-box-success {
    display: block !important;
}

@media (max-width: 640px) {
    .fc-save-calculation-box {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }

    .fc-save-box-icon {
        width: 40px;
        height: 40px;
    }
}

/* Reset and base styles */
.fc-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding-bottom: 20px;    
}

@media (max-width: 640px) {
    .fc-calculator-wrapper {
        border-radius: 8px;
        padding-bottom: 10px;
    }
}

.fc-calculator-wrapper * {
    box-sizing: border-box;
}

/* Progress Container with Navigation Arrows */
.fc-progress-container-with-nav {
    display: flex;
    align-items: center;
    /* gap: 20px; */
    padding: 32px 0px 24px;
    background: white;
    border-bottom: 2px solid #e5e7eb;
}

@media (max-width: 640px) {
    .fc-progress-container-with-nav {
        padding: 20px 12px 16px;
        /* gap: 12px; */
    }
}

.fc-progress-wrapper {
    flex: 1;
}

/* Navigation Arrows */
.fc-nav-arrow {
    background: white;
    border: none;
    /* border-radius: 50%; */
    /* width: 48px; */
    /* height: 48px; */
    /* min-width: 48px; */
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ef4444;
    position: relative;
    flex-shrink: 0;
}

.fc-nav-arrow:hover:not(:disabled) {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: scale(1.1);
}

.fc-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.fc-nav-arrow svg {
    width: 24px;
    height: 24px;
}

.fc-nav-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.fc-nav-arrow:hover:not(:disabled) .fc-nav-tooltip {
    opacity: 1;
}

@media (max-width: 640px) {
    .fc-nav-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .fc-nav-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Steps container */
.fc-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.fc-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress bar - Modern design with step circles */
.fc-progress-container {
    background: white;
    padding: 32px 20px 24px;
    border-bottom: 2px solid #e5e7eb;
}

@media (max-width: 640px) {
    .fc-progress-container {
        padding: 20px 8px 16px;
    }
}

.fc-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}

.fc-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fc-progress-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.fc-progress-step.active .fc-progress-step-circle {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.fc-progress-step.completed .fc-progress-step-circle {
    background: #10b981;
    color: white;
}

.fc-progress-step-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.fc-progress-step.active .fc-progress-step-label {
    color: #1e3c72;
    font-weight: 600;
}

.fc-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 0%, #7e22ce 100%);
    transition: width 0.4s ease;
    border-radius: 4px;
}

/* Step header - Premium design */
.fc-step-header {
    padding: 32px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

@media (max-width: 640px) {
    .fc-step-header {
        padding: 20px 8px;
        margin-bottom: 16px;
    }
}

.fc-step-header h3 {
    font-size: 26px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.fc-step-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Form groups */
.fc-form-group {
    margin-bottom: 24px;
    padding: 0 20px;
}

@media (max-width: 640px) {
    .fc-form-group {
        padding: 0 8px;
        margin-bottom: 20px;
    }
}

.fc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
}

.fc-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background: white;
}

@media (max-width: 640px) {
    .fc-input {
        font-size: 16px;
        padding: 12px 14px;
    }
}

.fc-input:focus {
    outline: none;
    border-color: #7e22ce;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

.fc-input::placeholder {
    color: #9ca3af;
}

.fc-input.error {
    border-color: #ef4444;
}

.fc-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

select.fc-input {
    cursor: pointer;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

@media (max-width: 640px) {
    select.fc-input {
        font-size: 16px;
    }
}

select.fc-input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.fc-form-row {
    padding: 0 20px;
}

@media (max-width: 640px) {
    .fc-form-row {
        padding: 0 8px;
    }
}

.fc-form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Contact form specific styling */
.fc-contact-form .fc-form-row {
    margin-bottom: 0;
}

.fc-contact-form .fc-form-group {
    margin-bottom: 20px;
}

/* Buttons - Premium style */
.fc-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    justify-content: center;
}

@media (max-width: 640px) {
    .fc-btn {
        padding: 5px 7px;
        font-size: 15px;
        border-radius: 10px;
        gap: 8px;
    }
}

.fc-btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.25);
}

.fc-btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 60, 114, 0.35);
}

.fc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fc-btn-secondary {
    background: white;
    color: #1e3c72;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fc-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #1e3c72;
}

.fc-btn-start {
    font-size: 18px;
    padding: 18px 48px;
    border-radius: 50px;
    box-shadow: 0 12px 32px rgba(30, 60, 114, 0.3);
}

@media (max-width: 640px) {
    .fc-btn-start {
        font-size: 16px;
        padding: 16px 32px;
    }
}

/* Step actions */
.fc-step-actions {
    padding: 24px 20px;
    background: #f8f9fa;
}

@media (max-width: 640px) {
    .fc-step-actions {
        padding: 16px 8px;
    }
}

.fc-step-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.fc-step-buttons-container .fc-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .fc-step-buttons-container {
        gap: 8px;
    }
}

/* Wall items - Premium cards */
.fc-walls-container {
    padding: 0 20px 20px;
}

@media (max-width: 640px) {
    .fc-walls-container {
        padding: 0 8px 8px;
    }
}

.fc-wall-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .fc-wall-item {
        padding: 12px 8px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
}

.fc-wall-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.fc-wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fc-wall-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.fc-wall-remove {
    background: #f44336;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}

.fc-wall-remove:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

/* Wall colors container */
.fc-wall-colors-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-wall-colors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-wall-color-item {
    margin-bottom: 12px;
}

.fc-color-picker-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    position: relative;
}

.fc-color-picker-container:hover {
    border-color: #cbd5e1;
}

.fc-wall-color-item .fc-color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 52px);
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.fc-choose-color-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 15px;
    padding: 12px 16px;
    cursor: pointer;
    text-align: left;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.fc-choose-color-btn[data-has-color="true"] {
    color: #1f2937;
    font-weight: 500;
}

.fc-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-right: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.fc-color-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-dropdown-icon {
    flex-shrink: 0;
    margin-left: 8px;
    color: #9ca3af;
}

.fc-remove-color-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.fc-remove-color-btn:hover {
    background: #fee;
    color: #ef4444;
}

.fc-remove-color-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .fc-choose-color-btn {
        font-size: 16px;
        padding: 12px 14px;
    }
}

.fc-btn-outline {
    background: transparent;
    border: 2px dashed #e0e0e0;
    color: #6b7280;
    width: 100%;
    justify-content: center;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

@media (max-width: 640px) {
    .fc-btn-outline {
        padding: 10px 8px;
        font-size: 14px;
        gap: 6px;
    }
}

.fc-btn-outline:hover {
    border-color: #7e22ce;
    color: #7e22ce;
    background: rgba(126, 34, 206, 0.05);
}

.fc-btn-icon {
    padding: 8px;
    min-width: auto;
}

/* Material and thickness row */
.fc-material-thickness-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
    width: 100%;
}

.fc-wall-material-select,
.fc-wall-thickness-select {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: auto;
    line-height: 1.5;
    min-height: 47px;
}

.fc-wall-material-select:hover,
.fc-wall-thickness-select:hover:not(:disabled) {
    border-color: #d1d5db;
}

.fc-wall-material-select:focus,
.fc-wall-thickness-select:focus {
    outline: none;
    border-color: #7e22ce;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

.fc-wall-material-select.error,
.fc-wall-thickness-select.error {
    border-color: #ef4444;
}

.fc-wall-material-select.error:focus,
.fc-wall-thickness-select.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.fc-wall-thickness-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
    opacity: 0.7;
}

/* Ensure consistent styling with other inputs */
.fc-wall-material-select::placeholder,
.fc-wall-thickness-select::placeholder {
    color: #9ca3af;
}

@media (max-width: 640px) {
    .fc-wall-material-select,
    .fc-wall-thickness-select {
        font-size: 16px;
    }
    
    .fc-material-thickness-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .fc-wall-color-item {
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
    }
    
    .fc-wall-color-item .fc-color-name-display {
        flex: 1 1 100%;
        min-width: 100%;
        order: 1;
        margin-bottom: 4px;
    }
    
    .fc-color-input-wrapper {
        flex: 1 1 calc(100% - 52px);
        order: 2;
    }
    
    .fc-choose-color-btn {
        width: 100%;
        padding: 12px 12px;
        font-size: 13px;
    }
    
    .fc-btn-remove {
        flex: 0 0 44px;
        order: 3;
    }
}

/* Image upload */
.fc-image-upload {
    position: relative;
    /* min-height: 120px; */
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.fc-wall-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.fc-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #999;
    pointer-events: none;
}

.fc-upload-placeholder svg {
    /* margin-bottom: 12px; */
    color: #ccc;
}

.fc-image-preview {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.fc-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    z-index: 3;
}

/* Material grid - Premium cards */
.fc-material-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.fc-material-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fc-material-card:hover {
    border-color: #1e3c72;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.15);
    transform: translateY(-4px);
}

.fc-material-card.selected {
    border-color: #1e3c72;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.03) 0%, rgba(126, 34, 206, 0.03) 100%);
    box-shadow: 0 12px 32px rgba(30, 60, 114, 0.2);
    transform: translateY(-4px);
}

.fc-material-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.fc-material-card h4 {
    font-size: 19px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.fc-material-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.fc-material-price {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.fc-card-check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    transform: scale(0);
}

.fc-card-check svg {
    color: white;
}

.fc-material-card.selected .fc-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Thickness and color grids - Premium design */
.fc-thickness-grid,
.fc-color-grid,
.fc-color-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.fc-thickness-option,
.fc-color-option,
.fc-color-type-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.fc-thickness-option:hover,
.fc-color-option:hover,
.fc-color-type-option:hover {
    border-color: #1e3c72;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

.fc-thickness-option.selected,
.fc-color-option.selected,
.fc-color-type-option.selected {
    border-color: #1e3c72;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(126, 34, 206, 0.05) 100%);
    box-shadow: 0 6px 16px rgba(30, 60, 114, 0.15);
    transform: translateY(-2px);
}

.fc-option-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.fc-option-price {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 15px;
}

/* Color preview */
.fc-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    margin-left: 12px;
}

/* Checkbox */
.fc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.fc-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Result screen - Premium celebration */
.fc-result-container {
    text-align: center;
    padding: 48px 20px;
    background: white;
}

@media (max-width: 640px) {
    .fc-result-container {
        padding: 32px 12px;
    }
}

.fc-success-icon {
    margin-bottom: 32px;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.fc-result-container h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #1a1a1a;
    font-weight: 700;
}

/* Walls Summary Table */
.fc-walls-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

@media (max-width: 640px) {
    .fc-walls-summary {
        padding: 16px 12px;
        margin-bottom: 24px;
    }
}

.fc-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.fc-summary-table td {
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

@media (max-width: 640px) {
    .fc-summary-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .fc-summary-table td:first-child {
        padding-right: 8px;
        min-width: 70px;
    }
}

.fc-summary-table td:nth-child(2),
.fc-summary-table td:nth-child(3),
.fc-summary-table td:nth-child(4) {
    text-align: right;
}

.fc-summary-table .fc-result-material-select,
.fc-summary-table .fc-result-thickness-select {
    width: 100%;
    max-width: 300px;
    float: right;
    padding: 8px 12px;
    padding-right: 32px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .fc-summary-table .fc-result-material-select,
    .fc-summary-table .fc-result-thickness-select {
        max-width: 100%;
        font-size: 13px;
        padding: 6px 8px;
        padding-right: 28px;
        background-position: right 8px center;
    }
}

.fc-summary-table .fc-result-material-select:hover,
.fc-summary-table .fc-result-thickness-select:hover {
    border-color: #d1d5db;
}

.fc-summary-table .fc-result-material-select:focus,
.fc-summary-table .fc-result-thickness-select:focus {
    outline: none;
    border-color: #7e22ce;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

.fc-summary-table tbody tr:first-child td {
    padding-top: 0;
}

.fc-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.fc-summary-table tbody tr:nth-child(4n+1) td:first-child {
    font-weight: 600;
    color: #1f2937;
    padding-top: 12px;
}

@media (max-width: 640px) {
    .fc-summary-table tbody tr:nth-child(4n+1) td:first-child {
        padding-top: 10px;
    }
}

.fc-summary-table tbody tr:nth-child(4n+1) {
    border-top: 2px solid #d1d5db;
}

.fc-summary-table tbody tr:nth-child(4n+1):first-child {
    border-top: none;
}

.fc-summary-table tfoot {
    border-top: 2px solid #7e22ce;
}

.fc-summary-table tfoot td {
    padding: 16px 12px;
    font-size: 15px;
    border-bottom: none;
}

@media (max-width: 640px) {
    .fc-summary-table tfoot td {
        padding: 12px 6px;
        font-size: 14px;
    }
}

.fc-summary-total-area {
    text-align: right;
}

.fc-price-display {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    border-radius: 24px;
    padding: 48px 20px;
    margin-bottom: 32px;
    box-shadow: 0 16px 48px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .fc-price-display {
        padding: 32px 16px;
        gap: 8px;
        flex-wrap: wrap;
    }
}

.fc-price-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-25%, -25%) rotate(0deg); }
    50% { transform: translate(-35%, -35%) rotate(180deg); }
}

.fc-currency {
    font-size: 32px;
    color: white;
    font-weight: 700;
    opacity: 0.95;
}

@media (max-width: 640px) {
    .fc-currency {
        font-size: 20px;
    }
}

.fc-price-amount {
    font-size: 64px;
    color: white;
    font-weight: 900;
    letter-spacing: -1px;
}

@media (max-width: 640px) {
    .fc-price-amount {
        font-size: 32px;
        letter-spacing: 0;
    }
}

.fc-price-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.fc-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.fc-detail-row:last-child {
    border-bottom: none;
}

.fc-result-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* Loading overlay */
.fc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.fc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Elements */
.fc-form-group {
    margin-bottom: 20px;
}

.fc-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.fc-form-group input,
.fc-form-group textarea,
.fc-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    background: #f3f4f6;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fc-form-group input::placeholder,
.fc-form-group textarea::placeholder {
    color: #6b7280;
}

.fc-form-group input:focus,
.fc-form-group textarea:focus,
.fc-form-group select:focus {
    outline: none;
    border-color: #7e22ce;
    background: white;
    box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.1);
}

.fc-form-group input.error,
.fc-form-group textarea.error,
.fc-form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.fc-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox styling */
.fc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    font-weight: 400;
}

.fc-checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    accent-color: #7e22ce;
}

.fc-checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.fc-checkbox-label.error {
    color: #ef4444;
}

.fc-checkbox-label.error input[type="checkbox"] {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Help text styling */
.fc-help-text {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0 26px;
    line-height: 1.4;
}

/* Thickness dropdown styling */
.fc-thickness-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.fc-thickness-select option {
    padding: 12px;
    font-size: 16px;
}

.fc-form-group .fc-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #6b7280;
}

/* Error Messages */
.fc-error-message {
    padding: 16px 20px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    color: #991b1b;
    font-size: 15px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fc-error-message svg {
    flex-shrink: 0;
    color: #ef4444;
}

/* Success Messages */
.fc-success-message {
    padding: 16px 20px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    color: #065f46;
    font-size: 15px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Upload Placeholder Enhancement */
.fc-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 8px; */
    padding: 10px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-upload-placeholder:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #7e22ce;
}

.fc-upload-placeholder svg {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.fc-upload-placeholder:hover svg {
    color: #7e22ce;
    transform: scale(1.1);
}

.fc-upload-placeholder span {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

/* Image Preview Enhancement */
.fc-image-preview {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Remove Image Button */
.fc-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.fc-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

/* Tablet styles */
@media (min-width: 768px) {
    .fc-calculator-wrapper {
        max-width: 720px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
        border-radius: 24px;
        overflow: hidden;
    }
    
    .fc-hero-title {
        font-size: 42px;
    }
    
    .fc-hero-subtitle {
        font-size: 20px;
    }
    
    .fc-hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fc-material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fc-thickness-grid,
    .fc-color-grid,
    .fc-color-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fc-form-row-2col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fc-welcome-content h2 {
        font-size: 36px;
    }
    
    .fc-welcome-content p {
        font-size: 18px;
    }
    
    .fc-progress-step-label {
        font-size: 12px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .fc-calculator-wrapper {
        max-width: 1000px;
    }
    
    .fc-hero-section {
        padding: 100px 40px 80px;
    }
    
    .fc-hero-title {
        font-size: 52px;
    }
    
    .fc-hero-subtitle {
        font-size: 22px;
    }
    
    .fc-hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fc-stats-section {
        padding: 50px 40px;
        margin: -40px 40px 0;
    }
    
    .fc-material-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .fc-thickness-grid,
    .fc-color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .fc-welcome-content h2 {
        font-size: 42px;
    }
    
    .fc-price-amount {
        font-size: 80px;
    }
    
    .fc-step-header {
        padding: 40px;
    }
    
    .fc-form-group {
        padding: 0 40px;
    }
    
    .fc-walls-container {
        padding: 0 40px 40px;
    }
    
    .fc-form-row {
        padding: 0 40px;
    }
}

/* Error messages */
.fc-error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 20px;
    font-size: 14px;
    border-left: 4px solid #c62828;
}

/* Success messages */
.fc-success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 20px;
    font-size: 14px;
    border-left: 4px solid #2e7d32;
}

/* Tooltips */
.fc-tooltip {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
}

.fc-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 280px;
    padding: 12px;
    background-color: #1e293b;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    text-align: left;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.fc-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
    z-index: 1001;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s, visibility 0.2s;
}

.fc-tooltip:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
}

.fc-tooltip:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .fc-tooltip::after {
        width: 240px !important;
        font-size: 12px !important;
        padding: 10px !important;
    }
}

/* ============================================
   PAGE SECTIONS - HOW IT WORKS & COMPLETED FACADES
   ============================================ */

/* Container */
.fc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
.fc-how-it-works,
.fc-completed-facades {
    padding: 80px 0;
    background: #ffffff;
}

.fc-how-it-works {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .fc-how-it-works,
    .fc-completed-facades {
        padding: 50px 0;
    }
}

/* Section Titles */
.fc-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fc-section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #646970;
    margin: 0 0 60px 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .fc-section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .fc-section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
}

/* How It Works - Steps Grid */
.fc-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .fc-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Step Card */
.fc-step-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.fc-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .fc-step-card {
        padding: 30px 20px;
    }
}

/* Step Number Badge */
.fc-step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3);
}

/* Step Icon */
.fc-step-icon {
    width: 72px;
    height: 72px;
    background: #f0e7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.fc-step-icon svg {
    width: 48px;
    height: 48px;
}

/* Step Content */
.fc-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.fc-step-description {
    font-size: 15px;
    color: #646970;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .fc-step-title {
        font-size: 18px;
    }
    
    .fc-step-description {
        font-size: 14px;
    }
}

/* Completed Facades Section */
.fc-facades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .fc-facades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fc-facades-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Facade Item */
.fc-facade-item {
    text-align: center;
}

.fc-facade-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fc-facade-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.fc-facade-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .fc-facade-image img {
        height: 200px;
    }
}

.fc-facade-caption {
    font-size: 14px;
    color: #646970;
    margin: 0;
    font-weight: 500;
}

/* Facades Action */
.fc-facades-action {
    text-align: center;
}

.fc-btn-outline-primary {
    background: white;
    color: #1e3c72;
    border: 2px solid #1e3c72;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.fc-btn-outline-primary:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.25);
}

@media (max-width: 768px) {
    .fc-btn-outline-primary {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ============================================
   CTA SECTION - Ready to Transform
   ============================================ */

.fc-cta-section {
    background: linear-gradient(135deg, #1e3c72 0%, #7e22ce 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .fc-cta-section {
        padding: 60px 0;
    }
}

.fc-cta-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.fc-cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .fc-cta-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .fc-cta-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

.fc-cta-action {
    margin-top: 40px;
}

.fc-btn-cta {
    background: white;
    color: #1e3c72;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.fc-btn-cta:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .fc-btn-cta {
        padding: 16px 36px;
        font-size: 16px;
    }
}


