.hm-choice-btn {
  
    border: 1px solid orange ! important;
}
.hm-form-step.completed .hm-circle {
    background: #f59e0b ! important;   /* orange */
    color: #fff;
}
#hm-email,input#hm-image-text,textarea#hm-bg-desc,input#hm-phone {
    
    border: 1px solid orange ! important;
}
/* General Body and Container Styles */
button.hm-choice-btn.active {
    background: orange;
    color: white ! important;
    border: 1px solid white;
}
#hm-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
}

/* Aspect Ratio Button Styling (New for Step 1) */
.hm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.hm-ratio-btn {
    background: #fff;
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
    width: 100%;
}

.hm-ratio-btn:hover {
    border-color: #f8ab53;
}

.hm-ratio-btn.active {
    border-color: #f8ab53;
    background-color: #fff9f2;
    box-shadow: 0 0 10px rgba(248, 171, 83, 0.2);
}

input#hm-phone {
    direction: rtl !important;
}

.hm-btn-generate {
    background-color: #f8ab53 !important;
    color: black !important;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border: 1px solid #ddd !important;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    justify-content: center;
    padding-top: 50px;
    margin: 0;
    min-height: 100vh;
}

.hm-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 20px auto;
    box-sizing: border-box;
    direction: rtl; /* Ensure Hebrew is right-to-left */
}

/* Form Steps Progress Bar */
.hm-form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10%;
}

.hm-form-step {
    flex: 1;
    text-align: center;
    color: #ccc;
    position: relative;
    z-index: 1;
}

.hm-form-step .hm-circle {
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hm-form-step.active .hm-circle {
    background-color: #f8ab53 !important;
    transform: scale(1.1);
}

.hm-form-step.completed .hm-circle {
    background-color: #f8ab53 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Progress line */
.hm-form-steps::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #eee;
    z-index: 0;
}

/* Form Content and Fields */
.hm-form-content {
    display: none;
    padding: 20px 0;
}

.hm-form-content.active {
    display: block;
}

.hm-form-header {
    text-align: center;
    color: #ff9a68;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.hm-form-group {
    margin-bottom: 25px;
}

.hm-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.hm-form-input,
.hm-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hm-form-input:focus,
.hm-form-textarea:focus {
    border-color: #f8ab53;
    box-shadow: 0 0 0 3px rgba(248, 171, 83, 0.25);
    outline: none;
}

/* Navigation Buttons */
.hm-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.hm-button {
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    flex-grow: 1 !important;
    text-align: center !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
}

.hm-btn-prev {
    background-color: #e6dccf !important;
    color: #333 !important;
}

.hm-btn-next {
    background-color: #f9a84d !important;
    color: #fff !important;
}

/* History and Results */
#hm-final-generated-output {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    min-height: 250px;
    white-space: pre-wrap;
}

.hm-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner Animation */
@keyframes hm-spin {
    to { transform: rotate(360deg); }
}

.hm-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #f8ab53;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: hm-spin 1s linear infinite;
}

/* Status Messages */
.hm-status-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.hm-status-message.hm-success {
    background-color: #d4edda;
    color: #155724;
}

.hm-status-message.hm-error {
    background-color: #f8d7da;
    color: #721c24;
}