/* Portal Specific Styles */

/* Registration Form Styles */
.registration-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
    min-height: 100vh;
}

.registration-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.registration-header p {
    color: #5a6c7d;
    font-size: 16px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    color: #5a6c7d;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.plan-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    border-color: #3498db;
    background: #f8fafc;
}

.plan-card.selected {
    border-color: #3498db;
    background: #f8fafc;
}

.plan-card.popular {
    border-color: #3498db;
    background: #f8fafc;
}

.plan-card .popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.plan-header .price {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.plan-header .plan-note {
    color: #27ae60;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
}

.plan-card li {
    padding: 5px 0;
    color: #2c3e50;
}

.plan-card li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 8px;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #5a6c7d;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #3498db;
    color: white;
}

.success-message {
    text-align: center;
    padding: 40px 0;
}

.success-message h2 {
    color: #27ae60;
    margin-bottom: 20px;
}

/* Portal Header */
.portal-header {
    background: #2c3e50;
}

.portal-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-welcome {
    color: white;
    font-weight: 500;
}

.portal-header .btn-outline {
    color: white;
    border-color: white;
}

.portal-header .btn-outline:hover {
    background: white;
    color: #2c3e50;
}

/* Portal Main Layout */
.portal-main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: #f8fafc;
}

.portal-main .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 20px;
    max-width: 1200px;
}

.portal-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px 0;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: #5a6c7d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: #f8fafc;
    color: #2c3e50;
}

.sidebar-menu a.active {
    background: #f8fafc;
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 500;
}

.portal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.portal-section {
    display: none;
    padding: 30px;
}

.portal-section.active {
    display: block;
}

.portal-section h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #5a6c7d;
    margin-bottom: 20px;
}

.recent-activity {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
}

.recent-activity h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.activity-list {
    color: #5a6c7d;
}

/* Consultation Form */
.consultation-form {
    max-width: 600px;
}

.consultation-form .form-group {
    margin-bottom: 25px;
}

.consultation-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Pets Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pet-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.pet-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.pet-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 15px;
}

.pet-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.pet-card p {
    color: #5a6c7d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #5a6c7d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2c3e50;
}

.pet-form {
    padding: 30px;
}

/* History Section */
.history-filters {
    margin-bottom: 20px;
}

.history-filters select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.history-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.no-history,
.no-activity {
    color: #5a6c7d;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

/* Account Section */
.account-form {
    max-width: 500px;
}

.account-form h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 20px;
}

/* Billing Section */
.billing-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.subscription-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.subscription-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.plan-details p {
    margin-bottom: 10px;
    color: #5a6c7d;
}

.plan-name {
    font-weight: 600;
    color: #2c3e50 !important;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #3498db !important;
}

.billing-history h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Responsive Design for Portal */
@media (max-width: 768px) {
    .portal-main .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portal-sidebar {
        order: 2;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .sidebar-menu li {
        margin-right: 10px;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .sidebar-menu a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-menu a.active {
        border-left: none;
        border-bottom-color: #3498db;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .billing-info {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .plan-selection {
        grid-template-columns: 1fr;
    }
    
    .registration-container {
        margin: 0 20px;
        padding: 30px 20px;
    }
}