/* --- CONTAINER & OVERALL LAYOUT --- */
.req-ultra-exec {
    padding: 20px;
    padding-bottom: 100px; 
    background: #fdfcfb;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* --- HERO SECTION (RESTORED ORANGE) --- */
.req-hero-card {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.req-hero-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.req-hero-info p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.req-hero-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.req-label-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    margin-top: 20px;
}

/* --- SERVICE GRID & SELECTION --- */
.req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.req-card {
    background: white;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.req-card.active {
    border-color: #d97706 !important;
    background: #fff7ed !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
}

.req-card-icon {
    font-size: 1.4rem;
    color: #b45309;
}

.req-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #451a03;
}

/* --- INPUTS & BUTTONS --- */
.req-input-group textarea {
    width: 100%;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.req-btn-main {
    width: 100%;
    background: #f59e0b;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.req-btn-main:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- HISTORY & ACTIVITY TRACKING --- */
.req-history-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.req-hist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Special "Amber Line" for the newest entry */
.req-hist-item.is-latest {
    border-left: 4px solid #f59e0b !important; 
    background: #fffdfa;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.req-h-type {
    font-weight: 700;
    color: #451a03;
}

.req-status-pill {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pending { background: #fff7ed; color: #ea580c; border: 1px solid #ffedd5; }
.status-closed { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }

/* --- THE MODAL (ZERO REGRESSION FIX) --- */
.req-modal-backdrop {
    position: fixed;        /* Fixes modal to screen, not page end */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;          /* Ensures it sits above footer/header */
    
    display: none;          /* STRICT HIDDEN DEFAULT */
    
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.req-modal-backdrop.active {
    display: flex !important;
}

.req-modal-content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.req-modal-check {
    font-size: 4rem;
    color: #f59e0b;
    margin-bottom: 16px;
}

.req-modal-btn {
    width: 100%;
    background: #451a03;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}