:root {

}

body {
    background-color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 15px;
}

.calculator-step {
    background: white;
    padding: 50px 60px;
    margin-bottom: 40px;
    /* Changed from display: none to allow all steps to be visible */
    display: block;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.calculator-step.active {
    /* Show step with full opacity and auto height */
    opacity: 1;
    max-height: none;
    overflow: visible;
}

.step-label {
    display: inline-block;
    background-color: #e31e24;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.step-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #000;
    line-height: 100%;
}

.step-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.options-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.option-card {
    border: 2px solid #e0e0e0;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: #ccc;
}

.option-card.selected {
    border-color: #e31e24;
    border-width: 3px;
}

.option-card.dimmed {
    opacity: 0.4;
}

.option-card img {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.option-card .option-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.dimensions-layout {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.house-image {
    flex: 1;
    max-width: 400px;
}

.house-image img {
    width: 100%;
    height: auto;
}

.dimensions-inputs {
    flex: 1;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    width: 100%;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    flex: 1;
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
}

.input-wrapper .unit {
    padding: 12px 15px;
    background: #f5f5f5;
    border-left: 2px solid #e0e0e0;
    font-weight: 600;
    color: #666;
}

.continue-btn {
    display: block;
    margin: 0 auto;
    background-color: #e31e24;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.continue-btn:hover:not(:disabled) {
    background-color: #c01820;
}

.continue-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.summary-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.summary-list {
    flex: 1;
}

.summary-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
      display: flex;
      justify-content: space-between;
      max-width: 90%;
      gap: 10px;
}

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

.summary-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.summary-image {
    flex: 0 0 300px;
    text-align: center;
}

.summary-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

h3#summary-product-name {
    font-weight: 700;
    font-size: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-calculate {
    background-color: #e31e24;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    background-color: #c01820;
}

.btn-reset {
    background-color: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    border-color: #999;
    color: #333;
}

.results-table {
    margin-top: 30px;
}

.results-table table {
    width: 100%;
}

.results-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

.results-table td {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
}

.table-secondary {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Updated styles for option cards */
.option-card .option-image {
    max-width: 150px; /* Increased size for better visibility */
    height: auto;
    margin-bottom: 20px;
    display: block; /* Ensure image takes full width of its container */
    margin-left: auto;
    margin-right: auto;
}
.option-card .option-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 10px; /* Added margin for spacing */
}

div#step4 .option-card .option-image {
  max-width: 100%;
}

div#step4 .options-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

div#step4 .option-card {
  padding: 20px 20px 10px;
}
/* Updated styles for step header */
.step-badge {
    display: inline-block;
    background-color: #e31e24;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 16px;
    border-radius: 4px; /* Added for slight rounded corners */
}
.step-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}
/* Updated next button style */
.btn-next {
    background-color: #e31e24;
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 0; /* Ensure no border-radius */
}
.btn-next:hover:not(:disabled) {
    background-color: #c01820;
}
.btn-next:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Added styles for foil details link */
.foil-details-link {
    color: #e31e24;
    text-decoration: underline;
    cursor: pointer;
}
.foil-details-link:hover {
    color: #c01820;
}

#userInfoModal .modal-content {
    border-radius: 0 !important;
    padding: 20px 20px !important;
}

#userInfoModal h5.modal-title {
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

#userInfoModal .modal-dialog {
    max-width: 620px !important;
}

@media only screen and (max-width: 500px) {
  .options-grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 20px;
  }
  .calculator-step {
      padding: 20px;
    }
    .dimensions-layout {
      flex-direction: column;
      gap: 20px;
      margin-bottom: 20px;
  }
  div#step3 .options-grid,
  div#step4 .options-grid,
  div#step6 .options-grid {
      grid-template-columns: repeat(2, 1fr);
      padding: 0;
      gap: 15px;
  }
  .summary-layout {
      flex-direction: column;
  }
  .summary-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
      padding-bottom: 15px;
      gap: 10px;
      display: flex;
      justify-content: space-between;
      max-width: 90%;
  }
  .summary-value {
      font-size: 14px;
  }
  div#summary-tile {
      text-align: right;
  }
  .action-buttons {
      flex-direction: column;
  }
  .option-card {
      border: 1px solid #e0e0e0;
      padding: 10px 5px;
  }
  div#step6 .option-card {
      padding: 10px 20px;
  }
  .step-title {
      font-size: 24px;
      margin-bottom: 4px;
  }
  .step-label {
      padding: 3px 10px;
      margin-bottom: 6px;
  }
}
