/* Service Request Page Styles */

.service-banner {
    padding: 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.banner-inner {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.banner-text h2 {
    font-size: 18px;
    color: #1976d2;
    margin-bottom: 6px;
    font-weight: 700;
}

.banner-text p {
    font-size: 12px;
    color: #5c6bc0;
}

.banner-worker {
    font-size: 40px;
    color: #1e88e5;
    opacity: 0.8;
}

.options-list {
    background: #fff;
}

.options-list.border-top {
    border-top: 8px solid #f9f9f9;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.option-item .label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.item-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-label-group .sub-label {
    font-size: 12px;
    color: #999;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-placeholder {
    font-size: 14px;
    color: #bbb;
}

.value-text {
    font-size: 14px;
    color: #333;
}

.value-text.green {
    color: #27ae60;
}

.option-item .arrow {
    font-size: 12px;
    color: #ccc;
}

.input-section {
    padding: 16px;
    background: #fff;
    border-top: 8px solid #f9f9f9;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

#problem-text {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: none;
    font-size: 15px;
    color: #333;
    outline: none;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #bbb;
}

.upload-section {
    padding: 20px 16px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

.upload-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.upload-section .label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.count-hint {
    font-size: 12px;
    color: #bbb;
}

.upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-btn {
    width: 90px;
    height: 90px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 11px;
}

.upload-btn i {
    font-size: 24px;
}

/* Modal Styling */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header .title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.modal-header .close-modal {
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
}

.modal-tabs {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 20px;
}

.m-tab {
    font-size: 13px;
    color: #666;
    padding: 6px 10px;
    border-radius: 4px;
}

.m-tab.active {
    background: #e8f5e9;
    color: #27ae60;
    font-weight: 500;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    margin-bottom: 30px;
}

.s-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.s-icon {
    width: 44px;
    height: 44px;
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.s-item span {
    font-size: 11px;
    color: #666;
    text-align: center;
}

.cancel-modal-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #666;
    border: none;
    border-top: 1px solid #f5f5f5;
    font-size: 15px;
    margin-top: 10px;
}

/* Switch styling for consistency */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #eee;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: #27ae60; }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.post-header .back-btn { font-size: 18px; color: #333; }
.post-header .header-title { font-size: 17px; font-weight: 600; }
.publish-submit-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}
