/**
 * Service Planner Integration Styles
 * Styling for Service Planner buttons, notifications, and integration elements
 */

/* Service Planner CTA Buttons */
.service-planner-cta {
    background: linear-gradient(135deg, #E63946 0%, #d62d3a 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
}

.service-planner-cta:hover {
    background: linear-gradient(135deg, #d62d3a 0%, #c02833 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
    color: white !important;
}

.service-planner-cta:before {
    content: '🚀';
    font-size: 16px;
    margin-right: 4px;
}

/* Service Quote Buttons */
.service-quote-btn {
    background: var(--color-primary, #E63946);
    color: white !important;
    border: 2px solid var(--color-primary, #E63946);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.service-quote-btn:hover {
    background: transparent;
    color: var(--color-primary, #E63946) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

/* Service CTA Container */
.service-cta {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.service-cta .btn-small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
}

/* Navigation Menu Service Planner Link */
.service-planner-nav {
    background: var(--color-primary, #E63946) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.service-planner-nav:hover {
    background: #d62d3a !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3) !important;
}

/* Footer Service Planner Link */
.service-planner-footer {
    color: var(--color-primary, #E63946) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.service-planner-footer:hover {
    color: #d62d3a !important;
    text-decoration: underline !important;
}

/* Success Notification Styles */
.service-planner-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animation for notification */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tertiary button style for hero section */
.btn-tertiary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .service-planner-success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .service-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-cta .btn-small {
        text-align: center;
        width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-planner-cta,
    .service-quote-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-planner-cta,
    .service-quote-btn,
    .service-planner-nav,
    .service-planner-footer {
        transition: none;
    }
    
    .service-planner-cta:hover,
    .service-quote-btn:hover,
    .service-planner-nav:hover {
        transform: none;
    }
    
    .service-planner-success-notification {
        animation: none;
    }
}

/* Focus states for accessibility */
.service-planner-cta:focus,
.service-quote-btn:focus,
.service-planner-nav:focus,
.service-planner-footer:focus {
    outline: 2px solid var(--color-primary, #E63946);
    outline-offset: 2px;
}

/* Loading state for Service Planner links */
.service-planner-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.service-planner-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
