 :root {
      --primary: #5a5aee; /* DreamGen Blue/Purple */
      --primary-dark: #3a3aae;
      --success: #28a745;
      --background: #f0f2f5;
      --card-bg: #ffffff;
      --text-main: #343a40;
      --text-light: #6c757d;
      --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
      --font-family: 'Inter', sans-serif;
    }

    /* Base Styles */
    body {
      font-family: var(--font-family);
      background: var(--background);
      margin: 0;
      padding: 0;
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
    }
    
    /* Media query to enforce mobile-first design, disabling display on large screens as requested */
    @media only screen and (min-width: 601px) {
      body {
        max-width: 600px;
        margin: 0 auto;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
      }
    }

    /* Header Styling */
    .header {
      background-color: var(--primary);
      color: white;
      padding: 15px 20px;
      text-align: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    .header img {
      height: 45px;
      vertical-align: middle;
      border-radius: 20px;
      margin-right: 8px;
    }
    .header strong {
      font-size: 1.2em;
      font-weight: 700;
    }

    /* Main Container */
    .container {
      max-width: 100%;
      padding: 20px;
    }
    
    /* Form Box */
    .form-box {
      background: var(--card-bg);
      padding: 25px;
      border-radius: 12px;
      box-shadow: var(--shadow);
      margin-bottom: 25px;
    }
    h2 {
      text-align: center;
      color: var(--primary-dark);
      margin-top: 0;
      font-weight: 600;
      font-size: 1.6em;
      margin-bottom: 20px;
    }
    input[type="text"] {
      width: 100%;
      padding: 14px;
      margin: 10px 0 20px;
      font-size: 16px;
      border-radius: 8px;
      border: 1px solid #ced4da;
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    input[type="text"]:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(90, 90, 238, 0.2);
      outline: none;
    }
    button {
      width: 100%;
      padding: 14px;
      background-color: var(--primary);
      color: white;
      border: none;
      font-size: 1.1em;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s, transform 0.1s;
    }
    button:hover {
      background-color: var(--primary-dark);
    }
    button:active {
      transform: scale(0.99);
    }

    /* Result Card Styling */
    .card {
      margin-top: 30px;
      padding: 25px;
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: var(--shadow);
      border-left: 5px solid var(--primary);
    }
    .card p {
      font-size: 1.0em;
      margin: 15px 0;
      padding-bottom: 8px;
      border-bottom: 1px dashed #eee;
    }
    .card p:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .card strong {
        color: var(--primary-dark);
        font-weight: 600;
    }
    .status-tag {
      display: inline-block;
      padding: 6px 15px;
      background-color: var(--success);
      color: white;
      border-radius: 20px;
      font-size: 0.9em;
      font-weight: bold;
      margin-left: 10px;
    }
    .error {
      text-align: center;
      color: #dc3545;
      background: #f8d7da;
      padding: 15px;
      border-radius: 8px;
      margin-top: 20px;
      border: 1px solid #f5c6cb;
      font-weight: 600;
    }
    
    /* Progress Bar Styles */
    .progress-info {
        text-align: center;
        margin-bottom: 20px;
        padding: 15px;
        background: #e9ecef;
        border-radius: 8px;
    }

    .progress-bar-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      margin: 30px 0;
    }

    .progress-line {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 10%; /* Account for half size of first step */
      right: 10%; /* Account for half size of last step */
      height: 6px;
      background: #ccc;
      border-radius: 3px;
    }

    .progress-fill {
      position: absolute;
      height: 100%;
      background: var(--primary);
      border-radius: 3px;
      transition: width 0.5s ease-in-out;
    }

    .progress-step {
      z-index: 10;
      text-align: center;
      width: 25%; /* Four steps */
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    .step-circle {
      width: 25px;
      height: 25px;
      border-radius: 50%;
      background: #ccc;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 12px;
      font-weight: bold;
      border: 3px solid white;
      transition: background-color 0.3s;
    }

    .step-label {
      font-size: 0.8em;
      margin-top: 8px;
      font-weight: 500;
      color: var(--text-light);
      transition: color 0.3s;
      white-space: nowrap;
    }

    .progress-step.active .step-circle {
      background: var(--primary);
    }
    
    .progress-step.active .step-label {
        color: var(--primary-dark);
        font-weight: 600;
    }

    .progress-step.completed .step-circle {
      background: var(--success);
      box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
    }
    
    /* Loading Overlay */
    .loading-overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(255, 255, 255, 0.9);
      z-index: 999;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      font-size: 1.1em;
      font-weight: 600;
      color: var(--primary);
      text-align: center;
    }

    .spinner {
      margin-top: 15px;
      width: 45px;
      height: 45px;
      border: 5px solid var(--primary);
      border-top: 5px solid transparent;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0); }
      100% { transform: rotate(360deg); }
    }
  