/* Additonal CSS */

.steps-container {
    position: relative;
    margin-bottom: 30px;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gray);
    z-index: 1;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.step::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--gray);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: bold;
    border: 2px solid var(--gray);
}

.step.active::before {
    background-color: var(--primary);
    border-color: var(--primary-dark);
}

.step::after {
    content: attr(data-step);
    position: absolute;
    top: 5px;
    color: white;
    font-weight: bold;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 80px;
    font-size: 1rem;
    transition: var(--transition);
}

textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

select {
    width: 100%;
    padding: 2px 15px; /* Increased padding for better spacing */
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    height: 46px; /* Slightly taller for better touch targets */
    transition: var(--transition);
    appearance: none; /* Remove default system appearance */
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23757575' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* Fix for Firefox */
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--dark);
}

/* Dropdown hover state */
select:hover {
    border-color: var(--gray-dark);
}

/* Dropdown disabled state */
select:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Dropdown option styling */
option {
    padding: 10px 15px;
    background-color: white;
    color: var(--dark);
}

option:hover {
    background-color: var(--primary);
    color: white;
}

/* Dropdown group styling */
optgroup {
    font-weight: bold;
    color: var(--primary-dark);
    padding: 5px 0;
}

/* Fix for IE11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    select {
        padding-right: 30px;
    }
    
    select::-ms-expand {
        display: none;
    }
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #222; /* Minimal, dark check */
  flex-shrink: 0;
}

.checkbox-item label {
  font-size: 1rem;
  line-height: 1.2;
  user-select: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}


.persona-preview, .persona-output {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.persona-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.persona-name {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.persona-title {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.persona-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .persona-details {
        grid-template-columns: 1fr;
    }
}

.detail-group {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-value {
    color: var(--dark);
}

.persona-quote {
    font-style: italic;
    padding: 15px;
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

/* Update button styles for disabled state */
button:disabled {
    background-color: var(--gray) !important;
    color: var(--gray-dark) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Ensure buttons maintain proper spacing */
.actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.actions button {
    flex: 1;
    max-width: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .actions {
        flex-direction: column;
    }
    
    .actions button {
        max-width: 100%;
    }
}

.persona-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.persona-actions button {
    padding: 12px 20px;
}

.next-steps {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
}

.next-steps h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.next-steps ul {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
}

/* Loading spinner */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}