/**
 * Herbert Dental Complete System - Styles
 * Version: 4.0.0
 * Complete functionality with theme integration
 */

/* Reset and Theme Integration */
.hdsp-hero,
.hdsp-features,
.hdsp-plans,
.hdsp-enrollment,
.hdsp-login,
.hdsp-dashboard {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Container - Respect theme width */
.hdsp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure content respects theme boundaries */
.hdsp-hero .hdsp-container,
.hdsp-features .hdsp-container,
.hdsp-plans .hdsp-container,
.hdsp-enrollment .hdsp-container,
.hdsp-login .hdsp-container,
.hdsp-dashboard .hdsp-container {
    max-width: 1140px;
}

/* Section Titles */
.hdsp-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    color: #1f2937;
}

/* Hero Section - Theme Integration */
.hdsp-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hdsp-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hdsp-hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hdsp-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Button Styles */
.hdsp-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hdsp-btn-primary {
    background: #1e40af;
    color: white;
}

.hdsp-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.hdsp-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hdsp-btn-secondary:hover {
    background: white;
    color: #1e40af;
}

.hdsp-btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Features Section */
.hdsp-features {
    padding: 60px 0;
    background: #f8fafc;
    margin: 0;
}

.hdsp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hdsp-feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hdsp-feature:hover {
    transform: translateY(-5px);
}

.hdsp-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hdsp-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

/* Plans Section */
.hdsp-plans {
    padding: 60px 0;
    background: white;
    margin: 0;
}

.hdsp-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hdsp-plan {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.hdsp-plan:hover {
    border-color: #1e40af;
    transform: translateY(-5px);
}

.hdsp-plan-popular {
    border-color: #1e40af;
    transform: scale(1.05);
}

.hdsp-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e40af;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.hdsp-plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.hdsp-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.hdsp-price span {
    font-size: 1rem;
    color: #6b7280;
}

.hdsp-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.hdsp-plan-features li {
    padding: 0.5rem 0;
    color: #4b5563;
}

/* Forms */
.hdsp-enrollment,
.hdsp-login {
    padding: 60px 0;
    background: #f8fafc;
    margin: 0;
}

.hdsp-enrollment-form,
.hdsp-login-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hdsp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hdsp-form-group {
    margin-bottom: 1rem;
}

.hdsp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.hdsp-form-group input,
.hdsp-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.hdsp-form-group input:focus,
.hdsp-form-group select:focus {
    outline: none;
    border-color: #1e40af;
}

/* Messages */
.hdsp-message {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.hdsp-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.hdsp-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Dashboard */
.hdsp-dashboard {
    padding: 60px 0;
    background: #f8fafc;
    margin: 0;
}

.hdsp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hdsp-dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hdsp-dashboard-card h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.hdsp-plan-info strong {
    color: #1e40af;
    font-size: 1.25rem;
}

.hdsp-status-active {
    color: #16a34a;
    font-weight: bold;
}

.hdsp-status-pending {
    color: #ea580c;
    font-weight: bold;
}

/* Theme compatibility */
.hdsp-hero *,
.hdsp-features *,
.hdsp-plans *,
.hdsp-enrollment *,
.hdsp-login *,
.hdsp-dashboard * {
    box-sizing: border-box;
}

.hdsp-hero h1,
.hdsp-hero p,
.hdsp-section-title {
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hdsp-hero h1 {
        font-size: 2rem;
    }
    
    .hdsp-section-title {
        font-size: 1.75rem;
    }
    
    .hdsp-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hdsp-form-row {
        grid-template-columns: 1fr;
    }
    
    .hdsp-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hdsp-plan-popular {
        transform: none;
    }
    
    .hdsp-enrollment-form,
    .hdsp-login-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .hdsp-container {
        padding: 0 15px;
    }
    
    .hdsp-hero,
    .hdsp-features,
    .hdsp-plans,
    .hdsp-enrollment,
    .hdsp-login,
    .hdsp-dashboard {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hdsp-hero h1 {
        font-size: 1.75rem;
    }
    
    .hdsp-section-title {
        font-size: 1.5rem;
    }
    
    .hdsp-container {
        padding: 0 10px;
    }
}

