:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --secondary-color: #1976d2; /* Lighter Blue */
    --accent-color: #4caf50; /* Success Green */
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* General Layout */
.chile-vive-registration-wrapper,
.chile-vive-doctor-profile {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
}

/* Form Styling */
.chile-vive-registration-wrapper h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    box-sizing: border-box; /* Important for padding */
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.9em;
}

/* Buttons */
.button.button-primary,
button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button.button-primary:hover,
button[type="submit"]:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Doctor Profile Styling */
.chile-vive-doctor-profile .doctor-details {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.chile-vive-doctor-profile h3 {
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.chile-vive-doctor-profile ul {
    list-style: none;
    padding: 0;
}

.chile-vive-doctor-profile li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 1.1em;
}

.chile-vive-doctor-profile li:last-child {
    border-bottom: none;
}

.chile-vive-doctor-profile li strong {
    color: var(--secondary-color);
    width: 140px;
    display: inline-block;
}

/* Map */
.doctor-map-wrapper {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

#doctor-map {
    z-index: 1; /* Fix for potential layering issues */
}

/* WooCommerce / Membership Tables Enhancements */
.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.shop_table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.9em;
}

.shop_table tbody td {
    border-top: 1px solid #eee;
    padding: 15px;
}

.shop_table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 600px) {
    .chile-vive-registration-wrapper,
    .chile-vive-doctor-profile {
        padding: 20px;
        margin: 20px auto;
    }

    .chile-vive-doctor-profile li strong {
        display: block;
        margin-bottom: 5px;
    }
}
