.service-form-container {
    display: flex;
    // flex-wrap: wrap;
    // gap: 30px;
    // justify-content: flex-start;
    padding: 15px;
    box-sizing: border-box;
    display: block;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.srcardstyle {
    // display: grid;   /* CHANGE from flex */
    // grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    // gap: 16px;       /* clean spacing */
    // padding: 10px;
    // width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 16px;
    padding: 10px;
    width: 100%;
    justify-content: start;
}

.sr-card {
    width: 100%; 
    min-height: 195px;   // CHANGE height to min-height
    height: auto;        // ADD THIS
    gap: 10px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid hsl(240 5% 84%);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    // justify-content: space-between; // ADD THIS - pushes button to bottom always
}

.sr-title {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.sr-title-row {
    display: flex;
    align-items: center;
    width: 100%;              // ADD THIS - full width
}

.sr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;           // PREVENT badge from shrinking
    white-space: nowrap;      // KEEP badge text on one line
    padding: 2px 8px;
    font-size: 11px;          // SLIGHTLY smaller to fit inline
    background: hsl(240, 4.8%, 95%);
    color: black;
    border-radius: 10px;
    border: 1px solid rgb(212, 212, 216);
    margin-left: auto;        // PUSH badge to far right
    max-width: 130px;         // LIMIT badge width
    overflow: hidden;
    text-overflow: ellipsis;  // SHOW "..." if badge text too long
}
.sr-title-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;     /* MAX 2 lines */
    -webkit-box-orient: vertical;

    overflow: hidden;          /* hide extra text */
    text-overflow: ellipsis;   /* show ... */
    
    white-space: normal;       /* allow wrapping */
    word-break: break-word;

    flex: 1;
    min-width: 0;
    line-height: 1.3;
    max-height: 2.6em;         /* exactly 2 lines */
}
.sr-category {
    margin-left: auto;
    flex-shrink: 0;
}
.sr-subtext {
    font-size: 0.875rem;
    color: hsl(240 5% 46%);
    margin: 0;
    min-height: 20px; // ADD THIS - consistent height even if text differs
}

.reqservicebtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #3b82f6;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: auto; // ADD THIS - always sticks to bottom
}

.reqservicebtn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

.submitrequestbtn {
    background-color: #3b82f6;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #ffffff;
}

.submitrequestbtn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}



.tabs-container {
    width: 100%;
    margin-bottom: 16px;
}

.tabs-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px;
}

.tab-trigger {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tab-trigger:hover {
    background-color: #e2e8f0;
    color: #334155;
}

.tab-trigger.active {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-trigger+.tab-trigger {
    border-left: 1px solid rgba(226, 232, 240, 0.6);
}

.tab-content {
    padding: 1rem 0;
}

.tab-icon {
    font-size: 1rem;
    margin-right: 0.25rem;
    opacity: 0.8;
    vertical-align: middle;
}

.tab-trigger.active .tab-icon {
    opacity: 1;
}

/* Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* semi-transparent dark */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

/* Lightbox Content */
.lightbox-content {
    position: relative;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    max-width: 845px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease-in;
}

/* Close icon */
.closeicon {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
}

.closeicon:hover {
    color: #000;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Optional: form container padding */
.form-container {
    margin-top: 24px;
}

.sr-wrapper {
    // width: 360px;
    // max-width: 460px;
    width: 100%;
    gap: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid hsl(240 5% 84%);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}


.sr-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 8px;
}

.sr-title-row {
    display: flex;
    align-items: center;
}

.sr-title {
    display: flex;
    align-items: center;
    gap: 1px; //space btwn icon and title
    width: 100%;
}

.sr-category {
    margin-left: auto;
    /* pushes category to right */
}

.custom-tabs {
    display: flex;
    gap: 12px;
    /* space between tabs */
    padding: 4px;
    /* optional padding around tabs */
    border-bottom: 2px solid #e2e8f0;
    /* light gray underline */

    .tab-trigger {
        flex: 1;
        /* equal width tabs */
        text-align: center;
        padding: 4px 16px;
        /* height and padding */
        font-size: 14px;
        font-weight: 500;
        border: none;
        border-radius: 3px 3px 0 0;
        background-color: #f8fafc;
        cursor: pointer;
        transition: all 0.4s ease;

        &.active {
            background-color: #fbfdff;
            /* blue */
            color: rgb(43, 42, 42);
            font-weight: 600;
            box-shadow: 4px 4px 4px #ffffff inset;
            /* underline effect */
        }

        &:hover {
            background-color: #ffffff;
        }
    }
}