/* BACKDROP */
.dr-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;

    align-items: center;
    justify-content: center;
}

.dr-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Inputs */
.dr-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: 0.2s;
}

/* Focus */
.dr-form input:focus {
    border-color: #f5a623;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245,166,35,0.2);
}

/* MODAL BOX */
.dr-modal-content {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 12px;
    position: relative;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: drFadeUp 0.25s ease;
}

/* ANIMATION */
@keyframes drFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TITLE */
.dr-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111;
}

/* CLOSE BUTTON */
.dr-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #777;
}

.dr-close:hover {
    color: #000;
}

/* GRID */
.dr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

/* INPUTS */
.dr-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s;
}

.dr-form input:focus {
    border-color: #f5a623;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245,166,35,0.2);
}

/* SELECT (Category) */
.dr-form .dr-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    transition: 0.2s;
    cursor: pointer;
}

.dr-form .dr-select:focus {
    border-color: #f5a623;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245,166,35,0.2);
}

.dr-form .dr-select.dr-error {
    border-color: #e74c3c;
}

/* CUSTOMER NOTE (textarea + live counter) */
.dr-note-wrap {
    position: relative;
}

.dr-form .dr-note {
    width: 100%;
    padding: 10px 12px;
    padding-bottom: 22px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: 0.2s;
}

.dr-form .dr-note:focus {
    border-color: #f5a623;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245,166,35,0.2);
}

.dr-form .dr-note.dr-error {
    border-color: #e74c3c;
}

.dr-note-counter {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 11px;
    color: #888;
    pointer-events: none;
    background: #fff;
    padding: 0 4px;
}

/* SUBMIT BUTTON */
.dr-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;

    background: #f5a623;
    color: #000;
    font-weight: 600;
    font-size: 15px;

    transition: 0.2s;
}

.dr-submit-btn:hover {
    background: #e6951f;
}

.dr-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

/* Success */
.dr-success {
    color: #2ecc71; /* green */
}

/* Error */
.dr-error-text {
    color: #e74c3c; /* red */
}

/* MOBILE */
@media (max-width: 480px) {
    .dr-grid {
        grid-template-columns: 1fr;
    }
}

/* YOUR SIDEBAR BOX (unchanged but included) */
.dr-sidebar-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.dr-title {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
}

.dr-sidebar-box .dr-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #f5a623;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dr-sidebar-box .dr-btn:hover {
    background: #e6951f;
}

.dr-loader {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;

    align-items: center;
    justify-content: center;
}

.dr-loader::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: #f5a623;
    border-radius: 50%;
    animation: drSpin 0.8s linear infinite;
}

@keyframes drSpin {
    to { transform: rotate(360deg); }
}