/**
 * wp-RentDesk & Trießnitzacker Member Dashboard Tabs
 */

/* Navigation Header Card Row */
.member-dashboard-nav-row,
.et_pb_row.member-dashboard-nav-row,
body #page-container .et_pb_row.member-dashboard-nav-row {
    max-width: 880px !important;
    width: 94% !important;
    background-color: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 35px 30px !important;
    margin: 0 auto 35px auto !important;
}

/* Navigation Container */
.member-tab-nav-wrapper {
    display: flex;
    justify-content: center;
    margin: 15px auto 0 auto;
    width: 100%;
}

.member-tab-nav {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.member-tab-nav br {
    display: none !important;
}

.member-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.2;
    flex: 0 0 auto;
}

.member-tab-btn:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.7);
}

.member-tab-btn.is-active {
    background: #8cc32f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(140, 195, 47, 0.42);
}

.member-tab-btn .tab-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Tab Panels Visibility */
.et_pb_row.member-tab-pane {
    display: none !important;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.et_pb_row.member-tab-pane.is-active {
    display: block !important;
    opacity: 1;
    animation: memberTabFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Tab Content Cards */
.et_pb_row.member-tab-pane {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 40px 35px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.member-tab-pane-header {
    text-align: center;
    margin-bottom: 30px;
}

.member-tab-pane-header h3 {
    font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 26px;
    color: #282d26;
    margin-bottom: 6px;
}

.member-tab-pane-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Seamless RentDesk Container inside Tab */
#tab-leihmaterial .rentdesk-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
}

/* Contact Form Styling in Divi */
.member-tab-pane .et_pb_contact_form {
    max-width: 680px;
    margin: 0 auto !important;
}

.member-tab-pane .et_pb_contact_field input,
.member-tab-pane .et_pb_contact_field textarea {
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #1e293b !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
}

.member-tab-pane .et_pb_contact_field input:focus,
.member-tab-pane .et_pb_contact_field textarea:focus {
    border-color: #8cc32f !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(140, 195, 47, 0.18) !important;
    outline: none !important;
}

.member-tab-pane .et_contact_bottom_container {
    text-align: center !important;
    margin-top: 15px !important;
}

.member-tab-pane .et_pb_contact_submit {
    background-color: #8cc32f !important;
    border: none !important;
    border-radius: 36px !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 13px 40px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(140, 195, 47, 0.35) !important;
}

.member-tab-pane .et_pb_contact_submit:hover {
    background-color: #79ab28 !important;
    box-shadow: 0 6px 18px rgba(140, 195, 47, 0.45) !important;
    transform: translateY(-1px);
}

.member-tab-pane .et_pb_contact_field label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
}

.member-tab-pane .form-footer-note {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 14px;
    margin-bottom: 0;
}

/* wp-RentDesk theme branding in Trießnitzacker green */
.rentdesk-btn-primary, 
.rentdesk-btn-submit {
    background: #8cc32f !important;
    border-color: #8cc32f !important;
    border-radius: 36px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 13px 32px !important;
    transition: all 0.2s ease !important;
}

.rentdesk-btn-primary:hover,
.rentdesk-btn-submit:hover {
    background: #79ab28 !important;
    border-color: #79ab28 !important;
    box-shadow: 0 4px 14px rgba(140, 195, 47, 0.35) !important;
}

.rentdesk-calendar .rentdesk-day.is-active-selection,
.rentdesk-calendar .day-slot.slot-selected-endpoint,
.rentdesk-calendar .day-slot.slot-preview-start {
    background-color: #8cc32f !important;
    border-color: #8cc32f !important;
}

.rentdesk-stepper button:hover {
    background: #8cc32f !important;
    border-color: #8cc32f !important;
    color: #ffffff !important;
}

.rentdesk-container textarea:focus,
.rentdesk-container input[type="text"]:focus,
.rentdesk-container input[type="email"]:focus,
.rentdesk-container input[type="tel"]:focus,
.rentdesk-container select:focus {
    border-color: #8cc32f !important;
    box-shadow: 0 0 0 3px rgba(140, 195, 47, 0.2) !important;
}

/* Responsive */
@media (max-width: 767px) {
    .member-dashboard-nav-row,
    .et_pb_row.member-dashboard-nav-row {
        padding: 24px 14px !important;
        width: 96% !important;
        max-width: 100% !important;
    }
    .member-tab-nav {
        flex-direction: column;
        flex-wrap: wrap;
        border-radius: 20px;
        width: 100%;
        padding: 8px;
    }
    .member-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
        font-size: 14px;
    }
    .et_pb_row.member-tab-pane {
        padding: 20px 10px !important;
        width: 96% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #tab-leihmaterial .rentdesk-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
