/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* General styles */
.justtaxjo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.justtaxjo-section {
    margin-bottom: 30px;
}

.justtaxjo-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Form styles */
.justtaxjo-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.justtaxjo-form-row {
    margin-bottom: 15px;
}

.justtaxjo-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.justtaxjo-form-input,
.justtaxjo-form-textarea,
.justtaxjo-form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.justtaxjo-form-textarea {
    min-height: 100px;
}

.justtaxjo-form-submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.justtaxjo-form-submit:hover {
    background-color: #005177;
}

.justtaxjo-form-error {
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
}

.justtaxjo-form-success {
    color: #00a32a;
    font-size: 14px;
    margin-top: 5px;
}

/* Services grid */
.justtaxjo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

.justtaxjo-service-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.justtaxjo-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.justtaxjo-service-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.justtaxjo-service-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.justtaxjo-service-content {
    padding: 15px;
}

.justtaxjo-service-description {
    margin-bottom: 15px;
    color: #666;
}

.justtaxjo-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.justtaxjo-service-price {
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
}

.justtaxjo-service-duration {
    color: #666;
}

.justtaxjo-service-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0073aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.justtaxjo-service-button:hover {
    background-color: #005177;
}

/* Client dashboard */
.justtaxjo-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.justtaxjo-dashboard-title {
    margin: 0;
}

.justtaxjo-dashboard-menu {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.justtaxjo-dashboard-menu-item {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-right: 1px solid #eee;
}

.justtaxjo-dashboard-menu-item:last-child {
    border-right: none;
}

.justtaxjo-dashboard-menu-item.active {
    background-color: #0073aa;
    color: #fff;
}

.justtaxjo-dashboard-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Order tracking */
.justtaxjo-order-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.justtaxjo-status-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.justtaxjo-status-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.justtaxjo-status-step.active:not(:last-child)::after {
    background-color: #0073aa;
}

.justtaxjo-status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
}

.justtaxjo-status-step.active .justtaxjo-status-icon {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.justtaxjo-status-label {
    font-size: 14px;
    color: #666;
}

.justtaxjo-status-step.active .justtaxjo-status-label {
    color: #0073aa;
    font-weight: 600;
}

/* Document upload */
.justtaxjo-dropzone {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.justtaxjo-dropzone:hover {
    border-color: #0073aa;
}

.justtaxjo-dropzone-icon {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 10px;
}

.justtaxjo-dropzone-text {
    color: #666;
}

/* Messaging system */
.justtaxjo-messages {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.justtaxjo-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.justtaxjo-message-client {
    background-color: #e1f3ff;
    margin-right: 20%;
}

.justtaxjo-message-admin {
    background-color: #f0f0f0;
    margin-left: 20%;
}

.justtaxjo-message-content {
    margin-bottom: 5px;
}

.justtaxjo-message-meta {
    font-size: 12px;
    color: #777;
}

.justtaxjo-message-form {
    display: flex;
}

.justtaxjo-message-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.justtaxjo-message-submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Button styles */
.justtaxjo-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.justtaxjo-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.justtaxjo-button-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.justtaxjo-button-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.justtaxjo-button-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: justtaxjo-spin 1s linear infinite;
}

.justtaxjo-button-success {
    background-color: #46b450;
    color: #fff;
}

@keyframes justtaxjo-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sticky Cart Widget */
.justtaxjo-sticky-cart {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background-color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    width: 300px !important;
    z-index: 9999999 !important; /* Increased z-index */
    display: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    transform: translateY(20px) !important;
    opacity: 0 !important;
    border: 1px solid #e0e0e0 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #333 !important;
    max-height: 80vh !important; /* Limit height */
    overflow-y: auto !important; /* Add scrolling if needed */
}

.justtaxjo-sticky-cart.active {
    display: block !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.justtaxjo-sticky-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.justtaxjo-sticky-cart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.justtaxjo-sticky-cart-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.justtaxjo-sticky-cart-close:hover {
    color: #333;
}

.justtaxjo-sticky-cart-items {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.justtaxjo-sticky-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.justtaxjo-sticky-cart-item:last-child {
    border-bottom: none;
}

.justtaxjo-sticky-cart-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.justtaxjo-sticky-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    margin-left: 10px;
}

.justtaxjo-sticky-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-bottom: 15px;
}

.justtaxjo-sticky-cart-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.justtaxjo-sticky-cart-total-price {
    font-size: 16px;
    font-weight: 700;
    color: #4CAF50;
}

.justtaxjo-sticky-cart-actions {
    display: flex;
    justify-content: space-between;
}

.justtaxjo-sticky-cart-actions .justtaxjo-button {
    flex: 1;
    margin: 0 5px;
    text-align: center;
}

.justtaxjo-sticky-cart-actions .justtaxjo-button:first-child {
    margin-left: 0;
}

.justtaxjo-sticky-cart-actions .justtaxjo-button:last-child {
    margin-right: 0;
}

.justtaxjo-sticky-cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.justtaxjo-sticky-cart-empty {
    text-align: center;
    padding: 20px 0;
    color: #666;
}

.justtaxjo-sticky-cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    animation: justtaxjo-notification-slide-in 0.3s ease forwards;
}

@keyframes justtaxjo-notification-slide-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
