/* CSS Variables */
:root {
    --primary-red: #b23a48;
    --primary-red-dark: #8c2d38;
    --primary-red-light: #d84a5a;
    --spaced-out: rgb(140, 80, 253);
    --verify: #3a76a7;
    --text-dark: #282e35;
    --text-light: #f2f8fa;
    --text-gray: #6c757d;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --header-height: 4.5rem;
    --nav-shadow: none;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  }
  
  /* Reset and Base Styles */
  * {
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    font-family: var(--font);
    font-weight: 400;
    font-style: normal;
  }
  
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--background);
    height: 100%;
    padding: 5vh;
  }
  
  /* Form Layout Components */
  .formWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(750px, 60%);
    margin-top: 10vh;
  }
  
  .formHeader, .formFooter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .formFooter {
    padding: 1.5rem;
    gap: 0.75rem;
  }
  
  .formBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
  }
  
  /* Form Steps and Options */
  .formStep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--background-alt);
    border-radius: 12px;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    width: 100%;
  }
  
  .options {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Typography */
  .designTitle {
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.6rem;
  }
  
  .stepTitle {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .stepSubtitle {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-gray);
  }
  
  .optionTitle {
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  b {
    color: var(--primary-red);
    font-weight: 400;
  }
  
  /* Button Styles */
  button,
  input[type="button"],
  .submitBtn,
  .resetBtn,
  input[type="radio"] + label,
  .color-btn {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    padding: 0.25rem 0.45rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: rgba(178, 58, 72, 0.1);
    color: var(--primary-red);
    border: 2px solid transparent;
    min-width: 60px;
    text-align: center;
    width: fit-content;
  }
  
  .submitBtn {
    background-color: var(--verify);
    color: var(--text-light);
    border: 1px solid var(--verify);
    padding: 0.5rem 1rem;
  }
  
  .resetBtn {
    background-color: var(--border-color);
    border: 1px solid var(--primary-red);
    padding: 0.5rem 1rem;
    font-weight: 600;
  }
  
  /* Button States */
  .selectedBtn,
  input[type="radio"]:checked + label,
  button.selected {
    background-color: rgba(216, 74, 90, 0.3);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .selectedBtn::after,
  input[type="radio"]:checked + label::after,
  button.selected::after,
  .imgOption.selected::after {
    content: '✓';
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--primary-red);
    color: var(--text-light);
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: var(--shadow);
  }
  
  button:hover,
  input[type="radio"] + label:hover,
  .color-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  /* Form Elements */
  select {
    cursor: pointer;
    border-radius: 8px;
    padding: 0.25rem 0.45rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: rgba(178, 58, 72, 0.1);
    color: var(--primary-red);
    border: 2px solid transparent;
    min-width: 60px;
  }
  
  select:focus { outline: none; }
  
  select:defined {
    background-color: rgba(216, 74, 90, 0.1);
    border: none;
    color: var(--primary-red);
    border-radius: 8px;
    font-weight: 500;
  }
  
  select option {
    background-color: var(--border-color);
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    padding: 0.25rem;
    font-weight: 600;
  }
  
  textarea {
    background-color: rgba(216, 74, 90, 0.1);
    color: var(--text-dark);
    border: 1px solid rgba(216, 74, 90, 0.5);
    outline: none;
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 600;
    resize: none;
  }
  
  /* Image Options */
  .imgOptions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: min(80vw, 600px);
    gap: 10px;
    color: var(--text-dark);
    padding: 5px;
  }
  
  .imgOption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
    border-radius: 6px;
    height: max(20vh, 170px);
    background-color: var(--background-alt);
    font-weight: 700;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }
  
  .selected { border: 2px solid var(--primary-red-light); }
  
  /* Font and Color Options */
  .font {
    height: 40px;
  }
  
  .font img {
    width: 140px;
    height: 100%;
    border-radius: 5px;
    object-fit: contain;
  }
  
  .color {
    width: fit-content;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  
  /* Form Options */
  .formOptions {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    gap: 0.75rem;
    margin: 8px 0;
    height: fit-content;
    width: 60%;
  }
  
  .formOption {
    font-weight: 700;
    display: flex;
    font-size: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }
  
  .formOption h4 {
    font-size: 1rem;
    margin-left: 0.5rem;
    font-weight: 500;
  }
  
  .formOption input {
    border: 1px solid var(--primary-red-light);
    background-color: rgba(216, 74, 90, 0.1);
    border-radius: 8px;
    width: 100%;
    padding: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .formOption input:focus { outline: none; }
  
  /* Custom Elements */
  .custom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .custom textarea {
    height: 1.5vh;
    width: 15vh;
    overflow: hidden;
  }
  
  .custom textarea::-webkit-scrollbar { display: none; }
  
  /* Utility Classes */
  .hidden { display: none; }
  input[type="radio"] { display: none; }
  
  /* Thank You Message */
  .thank-you-message {
    text-align: center;
    padding: 40px;
    background: var(--background-alt);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .thank-you-message h2 {
    color: #28a745;
    margin-bottom: 20px;
  }
  
  .thank-you-message p {
    color: var(--text-gray);
    margin-bottom: 20px;
  }
  
  .new-quote-btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
  }
  
  .new-quote-btn:hover { background: #0056b3; }
  .error-message { color: #dc3545; }