:root{
    --accent-color: #ca2030
}
.hidden {
    display: none !important;
}

.tooling-initial-screen {
    text-align: center;
    padding: 40px 20px;
}

.tooling-initial-screen h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.order-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.order-type-card {
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.order-type-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-type-card h4 {
    margin-bottom: 15px;
    font-size: 22px;
}

.order-type-card p {
    margin-bottom: 20px;
    color: #666;
}

#btn-back-reorder,
#btn-back-wizard{
    margin-bottom: 20px;
}

.btn-back:hover {
    text-decoration: underline;
}

.wizard-progress {
    margin-bottom: 40px;
}

.wizard-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wizard-progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s;
    width: 25%;
}

.wizard-tabs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.wizard-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    opacity: 0.7;
}

.wizard-tab.active {
    border-color: var(--accent-color);
    background: #f0f8ff;
    opacity: 1;
}

.wizard-tab .tab-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-weight: bold;
}

.wizard-tab.active .tab-number {
    background: var(--accent-color);
    color: white;
}

.wizard-tab .tab-label {
    font-size: 14px;
    text-align: center;
}

.wizard-step {
    min-height: 400px;
}

.wizard-navigation {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.btn-secondary {
    background: #6c757d !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
}

.tooling-form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Validation error styles */
.form__input-text.error,
.form__select.error,
.form__textarea--text.error {
    border: 2px solid var(--accent-color) !important;
    background-color: #fff5f5;
}

.form__input-text.error:focus,
.form__select.error:focus,
.form__textarea--text.error:focus {
    outline: none;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}


.alert-success .reference-number{
    font-size: 4rem;
    font-weight: bold;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-success .text-center{
    text-align: center;
}
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}


.form__input-text.checkbox{
    width: 24px !important;
    height: 24px !important;
}

.copy-by-click:after {
    content: "";
    display: inline-block;
    stroke: inherit;
    margin-left: 0.3em;
    width: 0.6em;
    height: 0.6em;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5 14H19C20.1046 14 21 13.1046 21 12V5C21 3.89543 20.1046 3 19 3H12C10.8954 3 10 3.89543 10 5V6.5M5 10H12C13.1046 10 14 10.8954 14 12V19C14 20.1046 13.1046 21 12 21H5C3.89543 21 3 20.1046 3 19V12C3 10.8954 3.89543 10 5 10Z' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.copy-by-click{
    cursor: pointer;
}

/* Info icon and popup styles */
.form__label--with-info {
    position: relative;
    display: inline-block;
}

.form__label--with-info::after {
    content: "\24D8";
    display: inline-block;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 16px;
    color: #666;
    border: 1px solid #666;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.form__label--with-info:hover::after,
.form__label--with-info.active::after {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(202, 32, 48, 0.1);
}

.form__label-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow: auto;
    max-width: 550px;
}

.form__label-popup.show {
    display: block;
}

.form__label-popup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.form__label-popup .info-text{
    padding: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .wizard-tabs {
        flex-wrap: wrap;
    }

    .wizard-tab {
        flex: 1 1 calc(50% - 5px);
    }

    .wizard-tab .tab-label {
        font-size: 12px;
    }

    .form__label-popup {
        max-width: 90vw;
        width: 100%;
    }

    .form__label-popup .info-text{
        padding: 0;
    }
}