/* Refill request modal (заявка на забор техники в ремонт). Old inline block from refillbutton.html */

.modal-button {
    padding: 1rem 2rem;
    background-color: #2563eb;
    color: white;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
}
.modal-button:hover {
    background-color: #1d4ed8;
}
.modal-dark-back {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    margin-left: 0px;
}
.modal-dark-back.open {
    display: flex;
    opacity: 1;
}

.modal-dark-back.open .modal-content {
    transform: scale(1);
}
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #9ca3af;
    transition: color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}
.close-button:hover {
    color: #4b5563;
}
.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-section {
    margin-bottom: 1rem;
}
.form-section-compact {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    flex-shrink: 0; /* Предотвращаем сжатие */
}
.option-toggle {
    display: flex;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    padding: 0.25rem;
}
.option-toggle div {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 9999px;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
}
.option-toggle .active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.single-select, .multi-select {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    color: #374151;
    cursor: pointer;
    text-align: center;
    font-size: 0.875rem;
}
.single-select:hover, .multi-select:hover {
    background-color: #e5e7eb;
}
.single-select.active, .multi-select.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}
.form-input, .form-textarea {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}
.submit-button {
    width: 100%;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}
.submit-button:hover {
    background-color: #1d4ed8;
}
.hidden {
    display: none;
}
.success-message {
    text-align: center;
    color: #16a34a;
    margin-top: 1rem;
}
.openModalBtn__ {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.9);
    position: absolute;
    top: 10px;
    right: 22px;
    width: 120px;
    height: 120px;
    cursor: pointer;
}
.openModalBtn:hover {
    transform: scale(1);
}