/* ==========================================================================
   HIZMET SIDEBAR STYLES
   ========================================================================== */

/* Layout */
.mepa-hizmet-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Turnstile Widget for Service Form */
.mepa-turnstile-group {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.mepa-turnstile-group .cf-turnstile {
    margin: 0 auto;
}

.mepa-service-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.mepa-hizmet-main {
    min-width: 0;
}

.mepa-hizmet-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    background: #fff;
    margin-top: -60px;
}

/* Sidebar Widget Base */
.mepa-sidebar-widget {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}


/* Search Widget */
.mepa-hizmet-search {
    background: transparent;
}

.mepa-search-form {
    display: flex;
    position: relative;
}

.mepa-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.mepa-search-input:focus {
    border-color: var(--mepa-primary-color, rgb(0, 168, 226));
}

.mepa-search-input::placeholder {
    color: #999;
}

.mepa-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 46px;
    background: var(--mepa-primary-color, rgb(0, 168, 226));
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mepa-search-btn:hover {
    background: var(--mepa-primary-color, rgb(0, 168, 226));
    filter: brightness(0.9);
}

/* Hizmet List Widget */
.mepa-hizmet-list {
    border: 1px solid #e0e0e0;
}

.mepa-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.mepa-widget-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mepa-widget-toggle {
    color: #666;
    transition: transform 0.3s ease;
}

.mepa-widget-header.collapsed .mepa-widget-toggle {
    transform: rotate(-90deg);
}

.mepa-hizmet-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mepa-hizmet-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mepa-hizmet-menu li:last-child {
    border-bottom: none;
}

.mepa-hizmet-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mepa-hizmet-menu li a:hover,
.mepa-hizmet-menu li.active a {
    color: var(--mepa-primary-color, rgb(0, 168, 226));
    background: #f8f9fa;
}

.mepa-menu-arrow {
    margin-right: 10px;
    font-size: 11px;
    color: var(--mepa-primary-color, rgb(0, 168, 226));
}

/* Talep Formu Widget */
.mepa-talep-formu {
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.mepa-widget-title {
    margin: 0 0 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

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

.mepa-form-group {
    margin: 0;
}

.mepa-form-input,
.mepa-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mepa-form-input:focus,
.mepa-form-textarea:focus {
    border-color: var(--mepa-primary-color, rgb(0, 168, 226));
}

.mepa-form-input::placeholder,
.mepa-form-textarea::placeholder {
    color: #999;
}

.mepa-form-input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.mepa-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.mepa-form-submit {
    width: 100%;
    padding: 14px 20px;
    background: var(--mepa-primary-color, rgb(0, 168, 226));
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 8px;
}

.mepa-form-submit:hover {
    background: var(--mepa-primary-color, rgb(0, 168, 226));
    filter: brightness(0.9);
}

/* Responsive */
@media (max-width: 992px) {
    .mepa-hizmet-layout {
        grid-template-columns: 1fr;
    }

    .mepa-hizmet-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mepa-hizmet-layout {
        gap: 30px;
    }

    .mepa-sidebar-widget {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   HIZMET SINGLE STYLES
   ========================================================================== */

.mepa-hizmet-single {
    background: #fff;
    padding: 0;
}

.mepa-hizmet-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.mepa-hizmet-content h2,
.mepa-hizmet-content h3,
.mepa-hizmet-content h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.mepa-hizmet-content p {
    margin-bottom: 20px;
}

.mepa-hizmet-content ul,
.mepa-hizmet-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.mepa-hizmet-content li {
    margin-bottom: 8px;
}

.mepa-hizmet-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Hizmet Placeholder */
.mepa-hizmet-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* No Hizmet Message */
.mepa-no-hizmet {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mepa-no-hizmet p {
    font-size: 18px;
    color: #666;
    margin: 0;
}