/**
 * Shutter Quote Calculator - Styles
 */

/* Reset and Base Styles */

/* ===============================
   HERO SECTION
=============================== */

.sqc-hero {
  background: #112539;
  padding: 60px 20px 60px;
  text-align: center;
  color: #fff;
}

.sqc-hero-inner{
  max-width: 1050px;
  margin:auto;
}

/* RATING BADGE */
.sqc-rating-badge{
  display:inline-flex;
  align-items:center;
  gap:18px;
  padding:14px 28px;
  border-radius:50px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.05);
  margin-bottom:40px;
}

.sqc-rating-badge img{
  height:34px !important;
  width:auto;
  display:block;
}

.sqc-rating-badge span{
  font-size:18px;
  font-weight:600;
  font-family:Poppins,sans-serif;
  opacity:.9;
}

/* TITLE */
.sqc-hero h1 {
   font-family: Montserrat, sans-serif;
    font-size: 44px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* SUBTITLE */
.sqc-subtitle{
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 20px;
  font-weight: 400;
  opacity:.85;
  margin-bottom:50px;
}

/* FEATURE PILLS */
.sqc-hero-features{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:22px;
  margin-bottom:60px;
}

.pill {
    padding: 11px 17px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgb(255 255 255 / 28%);
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 500;
}

/* BUTTON */
.sqc-hero-btn {
    background: linear-gradient(135deg, #1964E1, #053065);
    color: #fff;
    border: none;
    padding: 18px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 0 rgba(16, 80, 182, 0.4), 0 25px 60px rgba(16, 60, 182, 0.35);
    transition: all 0.3s ease;
}

.sqc-hero-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 30px 80px rgba(0,0,0,0.6);
}

/* TRUST TEXT */
.sqc-hero-trust{
  margin-top:40px;
  display:flex;
  justify-content:center;
  gap:30px;
  font-family:Poppins,sans-serif;
  opacity:.8;
}

/* MOBILE */
@media(max-width:768px){
  .sqc-hero h1{font-size:40px}
  .sqc-subtitle{font-size:18px}
  .sqc-rating-badge img{height:24px}
  .pill{font-size:15px}
}
.sqc-progress-active .sqc-progress-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #111827;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
/* Fade animation helpers */
.sqc-fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sqc-fade-in {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Hidden state (already used by you) */
.sqc-hidden {
    display: none;
}

/* Sticky progress activation */
body.sqc-progress-active .sqc-progress-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #111827;
}

#sqc-hero-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.sqc-steps {
    position: sticky;
    top: 32px;
    background: #fff;
    z-index: 10;
    padding-top: 10px;
}
#sqc-hero-section.sqc-hide {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    }

    #sqc-calculator-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    }

    #sqc-calculator-section.sqc-show {
    opacity: 1;
    transform: translateY(0);
    }

.sqc-calculator-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.sqc-modal-open {
    overflow: hidden;
}

.sqc-calculator-wrapper {
     font-family: Montserrat, sans-serif;
    background: #fff;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
}

.sqc-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* Header */
.sqc-header {
    background: linear-gradient(135deg, #1964E1  0%, #0097a7 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.sqc-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.sqc-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.sqc-header p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.sqc-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.sqc-features span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Progress Bar */
.sqc-progress-wrapper {
    background: #f5f5f5;
    padding: 20px 30px;
}

.sqc-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.sqc-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.sqc-step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.sqc-step-indicator:last-child::before {
    display: none;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sqc-step-indicator.active .step-number {
    background: #1964E1 ;
    color: white;
    transform: scale(1.1);
}

.sqc-step-indicator.completed .step-number {
    background: #4caf50;
    color: white;
}

.step-label {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.sqc-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.sqc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1964E1  0%, #0097a7 100%);
    transition: width 0.4s ease;
    width: 0%;
}

/* Form Content */
.sqc-form-content {
    padding: 40px;
}

/* Step base */
.sqc-step {
    display: none;
    opacity: 0;
    transform: translateX(60px);
    transition:
        transform 0.45s cubic-bezier(.4,0,.2,1),
        opacity 0.35s ease;
}

/* Active step */
.sqc-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Slide OUT to left */
.sqc-step.slide-out-left {
    opacity: 0;
    transform: translateX(-60px);
}

/* Slide IN from right */
.sqc-step.slide-in-right {
    display: block;
    opacity: 0;
    transform: translateX(60px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 
.sqc-step-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
} */
.sqc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.sqc-step-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.sqc-step-description {
    font-size: 18px;
    color: #9aa3ab;
    margin-top: 8px;
    margin-bottom: 20px;
}

.sqc-step-highlight {
    background: #e3f2fd;
    border-left: 4px solid #1964E1 ;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 15px;
    color: #1976d2;
}
/* Disabled Next button */
.sqc-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== STEP 1 : SERVICE ===== */
.sqc-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* force 3 columns */
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

/* Service card */
.sqc-service-card {
    background: #fff;
    border: 2px solid #2f333a;
    border-radius: 18px;
    padding: 40px 32px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: #000;
}

/* Hide radio */
.sqc-service-card input {
    display: none;
}

/* Content alignment */
.sqc-service-card .card-content {
    text-align: left;
}

/* Icon */
.sqc-service-card .card-icon {
    width: 56px;
    height: 56px;
    background: rgb(8 100 237 / 20%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
}

/* Title */
.sqc-service-grid .card-content h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #000;
}

/* Description */
.sqc-service-card p {
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}

/* Selected state */
.sqc-service-card input:checked + .card-content,
.sqc-service-card:has(input:checked) {
    border-color: #1964e1;
    
}

/* Check icon */
.sqc-service-card:has(input:checked)::after {
    content: "✓";
    position: absolute;
    right: 24px;
    top: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1964e1;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Material Grid */
.sqc-material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* CARD */
.sqc-material-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1f2329;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Hide radio */
.sqc-material-card input {
    display: none;
}

/* IMAGE */
.sqc-material-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* BOTTOM LABEL BAR */
.sqc-material-label {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sqc-material-card:active {
    transform: translateY(-2px) scale(0.99);
}


.sqc-material-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Slight image zoom on hover */
.sqc-material-card:hover img {
    transform: scale(1.05);
}

.sqc-material-image img {
    transition: transform 0.35s ease;
}

/* CHECK ICON */
.sqc-check {
    opacity: 0;
    font-size: 18px;
    color: #1964e1;
    opacity: 0;
    transform: scale(0.6);
    transition: 
        opacity 0.2s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SELECTED STATE (THIS WAS MISSING) */
.sqc-material-card.selected {
    border-color: #1964e1;
    box-shadow: 0 0 0 3px rgba(94,199,196,0.3);
}

.sqc-material-card.selected .sqc-check {
    opacity: 1;
    transform: scale(1);
}

/* Option Grid (for sub-selections) */
.sqc-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.sqc-option-card {
    position: relative;
    cursor: pointer;
    border-radius: 18px;
    padding: 34px 36px;
    background: #fff;
    border: 2px solid rgb(0 0 0 / 38%);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    color: #000;
}

.sqc-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sqc-option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.45);
    border-color: #1964e1;
}

.sqc-option-card:has(input:checked) {
    border-color: #1964e1;
    box-shadow: 0 0 0 2px #466496, 0 25px 55px rgba(0, 0, 0, .6);
    transform: scale(1.02);
    
}

.sqc-option-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.sqc-option-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #000;
}

.sqc-option-card::after {
    content: "✓";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1964e1;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.4);
    transition: all .25s ease;
}
.sqc-option-card:has(input:checked)::after {
    opacity: 1;
    transform: scale(1);
}

/* Color Grid */
.sqc-color-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr); /* 4 columns */
    gap:22px;
    margin-top:40px;
}

.sqc-color-card {
    background:#1f2430;
    border-radius:18px;
    padding:16px;
    cursor:pointer;
    transition:.25s;
    border:2px solid transparent;
    text-align:center;
}

.sqc-color-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.sqc-color-card:hover {
    border-color: #000;
    transform: translateY(-3px);
}

.sqc-color-card:has(input:checked) {
    border-color: #000;
    background: #666;
}

.color-swatch {
    width:100%;
    aspect-ratio:1/1; /* perfect square */
    border-radius:14px; /* make round or square */
    margin-bottom:12px;
    border:1px solid rgba(255,255,255,.15);
}

.color-name {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: #333;
}
.sqc-step-header button.sqc-btn.sqc-btn-add-room {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    background: #1964E1;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sqc-btn.sqc-btn-add-room span {
    font-size: 22px;
    line-height: 1;
}

.sqc-btn.sqc-btn-add-room:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 182, 184, 0.35);
}
.sqc-rooms-container {
    margin-top: 24px;
}

.sqc-empty-state {
    border: 2px dashed rgb(16 16 16 / 15%);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    font-size: 18px;
    color: #a8b0b7;
    background: rgba(255,255,255,0.02);
}

/* IMAGE TILE */
.color-img img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:14px;
    margin-bottom:12px;
}

/* TEXT */
.color-name{
    color:#fff;
    font-size:14px;
    font-weight:500;
}
/* Room Card */
.sqc-room-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.room-name-input {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #333;
    padding: 5px;
}

.room-name-input:focus {
    outline: none;
    background: white;
    border-radius: 4px;
}

.sqc-btn.sqc-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    background: #1964E1;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sqc-btn.sqc-btn-delete:hover {
    background: #ec1818;
    border: none;
}

.room-windows {
    margin-bottom: 15px;
}

.window-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-info {
    font-size: 14px;
    line-height: 1.6;
}

.window-actions {
    display: flex;
    gap: 10px;
}

.sqc-btn-icon {
    background: #1964E1 ;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.sqc-btn-icon:hover {
    background: #0097a7;
}

.room-photos {
    margin-top: 20px;
}

.photo-upload {
    display: inline-block;
    background: #1964E1 ;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.photo-upload:hover {
    background:#003894;
}

.photo-upload input {
    display: none;
}

.photo-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.photo-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sqc-btn-success {
    background: #1964E1 ;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.sqc-btn-success:hover {
    background: #b9305f;
    box-shadow: 0 8px 18px rgba(209,59,111,0.35);
}
.photo-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* Form Groups */
.sqc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.sqc-form-group {
    margin-bottom: 20px;
}

.sqc-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.sqc-form-group input[type="text"],
.sqc-form-group input[type="email"],
.sqc-form-group input[type="tel"],
.sqc-form-group input[type="number"],
.sqc-form-group select,
.sqc-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.sqc-form-group input:focus,
.sqc-form-group select:focus,
.sqc-form-group textarea:focus {
    outline: none;
    border-color: #1964E1 ;
}

.sqc-form-group input.error,
.sqc-form-group select.error {
    border-color: #f44336;
}

.sqc-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.sqc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sqc-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sqc-radio-label:hover {
    border-color: #1964E1 ;
    background: #f5f5f5;
}

.sqc-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sqc-info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 14px;
    color: #856404;
}

.info-icon {
    font-size: 20px;
}
.sqc-contact-highlight {
    margin: 28px 0;
    padding: 20px 24px;
    border-radius: 12px;
    background: rgba(79, 182, 184, 0.12);
    color: #000;
    font-size: 16px;
}
.sqc-contact-card {
   
    border-radius: 18px;
    padding: 40px;
    /* box-shadow: 0 30px 80px rgba(0,0,0,0.35); */
    
}
.sqc-contact-header h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
    color:#000;
}

.sqc-contact-header p {
    margin-top: 8px;
    font-size: 18px;
    color: #9aa3ab;
}
/* Summary */
.sqc-summary-container {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 30px;
}

.sqc-summary-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.sqc-summary-section:last-child {
    margin-bottom: 0;
}

.sqc-summary-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
}

.sqc-section-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sqc-detail-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px 30px;
    margin-bottom: 20px;
}

.sqc-detail-item {
    display: contents;
}

.sqc-detail-item.sqc-detail-full {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
}

.detail-label {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    align-self: start;
    padding-top: 2px;
}

.detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.sqc-edit-section-btn {
    background: #1964E1 ;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.sqc-edit-section-btn:hover {
    background: #0097a7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Windows Table */
.sqc-windows-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.sqc-windows-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.sqc-windows-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.sqc-windows-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
}

.sqc-windows-table tbody tr:last-child td {
    border-bottom: none;
}

.sqc-windows-table tbody tr:hover {
    background: #fafafa;
}

.sqc-total-sqm {
    background: #f0f9ff;
    border: 1px solid #1964E1 ;
    border-radius: 6px;
    padding: 12px 15px;
    text-align: right;
    font-size: 14px;
    color: #0097a7;
    margin-bottom: 20px;
}

.sqc-total-sqm strong {
    font-size: 16px;
    color: #00838f;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: #666;
}

.summary-row strong {
    color: #333;
}

.sqc-edit-btn {
    background: transparent;
    color: #1964E1 ;
    border: 1px solid #1964E1 ;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sqc-edit-btn:hover {
    background: #1964E1 ;
    color: white;
}

/* Buttons */
.sqc-button-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
/* Push NEXT button to the right */
.sqc-button-group .sqc-btn-primary {
    margin-left: auto;
}

.sqc-button-group .sqc-btn-primary, .sqc-button-group .sqc-btn-success, .sqc-btn.startquote {
    background: linear-gradient(135deg, #1964E1, #053065);
    color: #fff;
    border: none;
    padding: 8px 30px 7px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sqc-button-group .sqc-btn-primary:hover, .sqc-button-group .sqc-btn-success:hover, .sqc-btn.startquote:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(94,202,216,0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(94, 202, 216, 0.35);
    background: linear-gradient(100deg, #053065, #1964E1);
    transition: 0.3s;
}

.sqc-button-group .sqc-btn-secondary, .sqc-modal-footer .sqc-btn-secondary {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 30px 7px;
    border-radius: 10px;
    cursor: not-allowed;
    opacity: 0.6;
}

.room-header button.sqc-btn-delete {
    background: red;
    margin: 10px;
    color: #fff;
    border-radius: 6px;
}

.sqc-button-group .sqc-btn-secondary:hover {
    background: #4b4b4b;
}

.sqc-btn-success {
    background: #4caf50;
    color: white;
}

.sqc-btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.sqc-btn-add {
    background: #1964E1 ;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.sqc-btn.sqc-btn-add:hover {
    background: #0097a7;
}

.sqc-btn.sqc-btn-add-small, .sqc-modal-footer .sqc-btn.sqc-btn-primary {
    background: #e3f2fd;
    color: #1964E1 ;
    border: 2px solid #1964E1 ;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sqc-btn.sqc-btn-add-small:hover, .sqc-modal-footer .sqc-btn.sqc-btn-primary:hover  {
    background: #1964E1 ;
    color: white;
}

.sqc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
/* Modal should be hidden by default */
/* ===== MODAL BASE ===== */
#windowModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
  }
  
  /* OPEN STATE */
  #windowModal.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* ===== MODAL CONTENT ===== */
  .sqc-modal-content {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.35s ease;
  }
  
  /* CONTENT OPEN */
  #windowModal.is-open .sqc-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  
  /* ===== HEADER ===== */
  .sqc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
  }
  
  .sqc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }
  
  .sqc-modal-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0.6;
  }
  
  .sqc-modal-close:hover {
    opacity: 1;
  }
  
  /* ===== BODY ===== */
  .sqc-modal-body {
    padding: 22px;
    overflow-y: auto;
  }
  
  /* ===== FOOTER ===== */
  .sqc-modal-footer {
    padding: 18px 22px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  

/* Success Message */
.sqc-success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.sqc-success-message h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.sqc-success-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.quote-number {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .sqc-form-content {
        padding: 25px;
    }

    .sqc-header {
        padding: 30px 20px;
    }

    .sqc-header h1 {
        font-size: 24px;
    }

    .sqc-features {
        flex-direction: column;
        align-items: center;
    }

    .sqc-progress-wrapper {
        padding: 15px;
    }

    .step-label {
        font-size: 9px;
    }

    .sqc-service-grid,
    .sqc-option-grid {
        grid-template-columns: 1fr;
    }

    .sqc-color-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .sqc-form-grid {
        grid-template-columns: 1fr;
    }

    .sqc-button-group {
        flex-direction: column-reverse;
    }

    .sqc-btn {
        width: 100%;
    }

    /* Summary responsive */
    .sqc-summary-section {
        padding: 20px;
    }

    .sqc-summary-section h3 {
        font-size: 18px;
    }

    .sqc-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .detail-label {
        font-weight: 700;
        margin-bottom: 2px;
    }

    .detail-value {
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Table responsive */
    .sqc-windows-table {
        font-size: 12px;
    }

    .sqc-windows-table th,
    .sqc-windows-table td {
        padding: 8px 10px;
    }

    .sqc-windows-table thead {
        display: none;
    }

    .sqc-windows-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
        background: white;
    }

    .sqc-windows-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .sqc-windows-table td:last-child {
        border-bottom: none;
    }

    .sqc-windows-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
    }

    /* Modal responsive */
    .sqc-modal-content {
        width: 95%;
        max-width: none;
        max-height: 98vh;
        margin: 10px auto;
    }

    .sqc-modal-header {
        padding: 20px;
    }

    .sqc-modal-header h3 {
        font-size: 18px;
    }

    .sqc-modal-body {
        padding: 20px;
        max-height: calc(98vh - 150px);
    }

    .sqc-modal-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .sqc-step-title {
        font-size: 22px;
    }

    .sqc-step-indicator {
        flex: initial;
        width: 14%;
    }

    .step-label {
        display: none;
    }

    .sqc-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .sqc-modal-body {
        max-height: calc(100vh - 150px);
    }

    .sqc-summary-section h3 {
        font-size: 16px;
    }

    .detail-value {
        font-size: 14px;
    }
}

.sqc-room-photos-summary {
    margin-top: 20px;
}

.sqc-room-photos-summary h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.sqc-photo-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sqc-photo-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}
/**
 * ADD THIS TO calculator.css
 * Styles for image-based color options (Stain & Textured)
 */

/* Image-based color option */
.sqc-color-option .color-swatch-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sqc-color-option input[type="radio"]:checked ~ .color-swatch-image {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.sqc-color-option .color-swatch-image:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

/* Regular color swatch (keep existing) */
.sqc-color-option .color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sqc-color-option input[type="radio"]:checked ~ .color-swatch {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}
.sqc-material-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.sqc-material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media(max-width:900px){
    .sqc-color-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .sqc-color-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
/* ===== SUMMARY GRID ===== */

.sqc-summary-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.sqc-grid-2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:12px 40px;
}

.sqc-row{
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid #eee;
    padding:6px 0;
    font-size:15px;
}

.sqc-row span{
    color:#666;
}

.sqc-color-wrap{
    display:flex;
    align-items:center;
    gap:10px;
}

.sqc-color-preview{
    width:70px;
    height:70px;
    border-radius:6px;
    border:1px solid #ddd;
    object-fit:cover;
}

button.sqc-edit-section-btn, button.sqc-btn-icon{
    background: linear-gradient(135deg, #1964E1, #053065);
    color: #fff;
    border: none;
    padding: 8px 30px 7px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.button.sqc-edit-section-btn:hover, button.sqc-btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(94, 202, 216, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(94, 202, 216, 0.35);
    background: linear-gradient(100deg, #053065, #1964E1);
    transition: 0.3s;
}
/**
 * Mobile-Specific Fixes for Shutter Calculator
 * Add this CSS AFTER calculator.css and calculator-responsive.css
 */

/* ===============================
   ROOMS & WINDOWS SECTION - MOBILE FIX
================================ */

/* Base mobile styles (all mobile devices) */
@media (max-width: 767px) {
    
    /* Step Header - Stack on mobile */
    .sqc-step-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    /* Title adjustments */
    .sqc-step-title {
        font-size: 24px !important;
        line-height: 1.2;
        margin: 0;
        width: 100%;
    }
    
    /* Description adjustments */
    .sqc-step-description {
        font-size: 14px !important;
        line-height: 1.4;
        margin-top: 4px;
        margin-bottom: 0;
        color: #6b7280;
        width: 100%;
    }
    
    /* Add Room Button - Full width on mobile */
    .sqc-btn-add-room {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 600;
        margin-top: 8px;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* Empty State */
    .sqc-empty-state {
        padding: 40px 20px !important;
        font-size: 14px !important;
        line-height: 1.6;
        text-align: center;
        color: #6b7280;
    }
    
    /* Rooms Container */
    .sqc-rooms-container {
        margin-top: 20px;
    }
    
    /* Room Cards */
    .sqc-room-card {
        padding: 16px !important;
        margin-bottom: 16px;
    }
    
    .sqc-room-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .sqc-room-header h4 {
        font-size: 16px !important;
        margin: 0;
        width: 100%;
    }
    
    /* Room Actions - Stack buttons */
    .sqc-room-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .sqc-room-actions .sqc-btn-icon {
        width: 100%;
        justify-content: center;
    }
    
    /* Bottom Navigation Buttons */
    .sqc-button-group {
        display: flex;
        flex-direction: column-reverse !important;
        gap: 12px;
        margin-top: 24px;
    }
    
    .sqc-button-group .sqc-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

/* Small mobile devices (iPhone SE, small Androids) */
@media (max-width: 375px) {
    .sqc-step-title {
        font-size: 22px !important;
    }
    
    .sqc-step-description {
        font-size: 13px !important;
    }
    
    .sqc-empty-state {
        padding: 30px 16px !important;
        font-size: 13px !important;
    }
}

/* Larger mobile devices */
@media (min-width: 376px) and (max-width: 767px) {
    .sqc-step-title {
        font-size: 26px !important;
    }
    
    .sqc-step-description {
        font-size: 15px !important;
        margin-bottom: 20px;
    }
}

/* ===============================
   PROGRESS BAR - MOBILE FIX
================================ */

@media (max-width: 767px) {
    .sqc-progress-wrapper {
        padding: 12px 16px !important;
    }
    
    .sqc-progress-steps {
        margin-bottom: 10px;
        gap: 6px;
    }
    
    .step-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }
    
    .step-label {
        font-size: 9px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none !important;
    }
    
    .step-number {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }
}

/* ===============================
   FORM CONTENT - MOBILE FIX
================================ */

@media (max-width: 767px) {
    .sqc-form-content {
        padding: 24px 16px !important;
    }
    
    /* Form Groups */
    .sqc-form-group {
        margin-bottom: 16px;
    }
    
    .sqc-form-group label {
        font-size: 14px !important;
        margin-bottom: 6px;
        display: block;
    }
    
    .sqc-form-group input,
    .sqc-form-group select,
    .sqc-form-group textarea {
        width: 100%;
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 8px;
    }
}

/* ===============================
   MODAL - MOBILE FIX
================================ */

@media (max-width: 767px) {
    .sqc-modal {
        padding: 10px;
    }
    
    .sqc-modal-content {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        max-height: calc(100vh - 20px) !important;
        margin: 10px auto !important;
    }
    
    .sqc-modal-header {
        padding: 16px !important;
    }
    
    .sqc-modal-header h3 {
        font-size: 16px !important;
    }
    
    .sqc-modal-body {
        padding: 16px !important;
        max-height: calc(100vh - 160px) !important;
    }
    
    .sqc-modal-footer {
        padding: 14px 16px !important;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .sqc-modal-footer .sqc-btn {
        width: 100% !important;
    }
}

/* Full screen modal for very small devices */
@media (max-width: 480px) {
    .sqc-modal-content {
        width: 90% !important;
        height: 86vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .sqc-modal-body {
        max-height: calc(100vh - 140px) !important;
    }
}

/* ===============================
   SERVICE/MATERIAL CARDS - MOBILE
================================ */

@media (max-width: 767px) {
    .sqc-service-grid,
    .sqc-material-grid,
    .sqc-option-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .sqc-service-card,
    .sqc-material-card {
        padding: 24px 20px !important;
    }
    
    .sqc-service-card h3,
    .sqc-material-card h3 {
        font-size: 18px !important;
    }
    
    .sqc-service-card p,
    .sqc-material-card p {
        font-size: 14px !important;
    }
}

/* ===============================
   COLOR GRID - MOBILE
================================ */

@media (max-width: 767px) {
    .sqc-color-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .sqc-color-option {
        padding: 10px !important;
    }
    
    .color-swatch, .color-swatch-image {
        width: 100% !important;
        height: 52px !important;
    }

    .window-info {
      
        margin-bottom: 17px;
    }
    
    .color-name {
        font-size: 11px !important;
        margin-top: 6px;
    }
    .window-item {
        
        margin-bottom: 19px;
        display: block;

    }
    .sqc-contact-card {
        border-radius: 18px;
        padding: 15px;
        /* box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); */
    }
}

@media (max-width: 375px) {
    .sqc-color-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .color-swatch,
    .color-swatch-image {
        width: 55px !important;
        height: 55px !important;
    }
}

/* ===============================
   WINDOWS TABLE - MOBILE (CARD VIEW)
================================ */

@media (max-width: 767px) {
    .sqc-windows-table {
        display: block;
        width: 100%;
    }
    
    .sqc-windows-table thead {
        display: none;
    }
    
    .sqc-windows-table tbody {
        display: block;
    }
    
    .sqc-windows-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .sqc-windows-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        font-size: 14px;
    }
    
    .sqc-windows-table td:last-child {
        border-bottom: none !important;
    }
    
    .sqc-windows-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        margin-right: 10px;
    }
    
    .sqc-windows-table td:last-child {
        justify-content: flex-end;
    }
}

/* ===============================
   SUMMARY SECTION - MOBILE
================================ */

@media (max-width: 767px) {
    .sqc-summary-section {
        padding: 16px !important;
        margin-bottom: 16px;
    }
    
    .sqc-summary-section h3 {
        font-size: 16px !important;
        margin-bottom: 12px;
    }
    
    .sqc-summary-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }
    
    .sqc-edit-section-btn {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .sqc-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .sqc-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
        padding: 10px 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .sqc-row span {
        font-size: 13px;
        color: #6b7280;
    }
    
    .sqc-row strong {
        font-size: 14px;
        color: #1f2937;
    }
    
    .sqc-color-preview {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ===============================
   CONTAINER & WRAPPER - MOBILE
================================ */

@media (max-width: 767px) {
    .sqc-calculator-wrapper {
        padding: 10px !important;
        min-height: 100vh;
    }
    
    .sqc-container {
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
}

/* ===============================
   UTILITY CLASSES - MOBILE
================================ */

@media (max-width: 767px) {
    /* Spacing utilities */
    .sqc-mb-sm { margin-bottom: 12px !important; }
    .sqc-mb-md { margin-bottom: 16px !important; }
    .sqc-mb-lg { margin-bottom: 24px !important; }
    
    .sqc-mt-sm { margin-top: 12px !important; }
    .sqc-mt-md { margin-top: 16px !important; }
    .sqc-mt-lg { margin-top: 24px !important; }
    
    /* Text utilities */
    .sqc-text-sm { font-size: 13px !important; }
    .sqc-text-md { font-size: 14px !important; }
    .sqc-text-lg { font-size: 16px !important; }
    
    /* Width utilities */
    .sqc-w-full { width: 100% !important; }
    
    /* Display utilities */
    .sqc-mobile-hidden { display: none !important; }
    .sqc-mobile-block { display: block !important; }
}

/* Show on desktop, hide on mobile */
.sqc-desktop-only {
    display: block;
}

@media (max-width: 767px) {
    .sqc-desktop-only {
        display: none !important;
    }
}

/* Show on mobile, hide on desktop */
.sqc-mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .sqc-mobile-only {
        display: block !important;
    }
}