/* STDcheck.com Styles for WordPress Integration */
:root {
    --primary-color: #17a2b8; /* STDcheck teal */
    --secondary-color: #f89829; /* STDcheck orange */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #2b4c62; /* STDcheck dark blue */
    --gray-color: #6c757d;
    --border-color: #dee2e6;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.main-container {
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

/* Header Styles */
.site-header {
    background-color: #2b4c62;
    color: white;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container img {
    max-height: 40px;
}

.contact-info {
    color: white;
    font-size: 14px;
}

.contact-info i {
    margin-right: 5px;
}

/* Checkout Section Styles */
.checkout-section {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.section-header {
    background-color: #2b4c62;
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-number {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
}

.section-content {
    padding: 20px;
}

/* Map Styles */
.map-container {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.map-search-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.map-search-container .input-group {
    flex: 1;
    margin-right: 10px;
}

.location-btn {
    white-space: nowrap;
}

#map {
    height: 400px;
    width: 100%;
}

.map-container-inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .map-container-inner {
        flex-direction: row;
    }

    #map {
        flex: 2;
        height: 500px;
    }

    #lab-list-container {
        flex: 1;
        max-width: 300px;
        overflow-y: auto;
        max-height: 500px;
    }
}

#lab-list-container {
    padding: 15px;
    background-color: #fff;
    border-left: 1px solid var(--border-color);
}

.lab-list-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.lab-item {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lab-item:hover {
    background-color: #f5f5f5;
}

.lab-item.selected {
    background-color: #e8f4fd;
    border-color: var(--primary-color);
}

.lab-item h5 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--primary-color);
}

.lab-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.lab-item .lab-distance {
    font-weight: bold;
    color: var(--success-color);
}

/* Selected Lab Info Styles */
#selected-lab-info {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

#selected-lab-info h5 {
    margin-top: 0;
    color: var(--dark-color);
}

#no-lab-selected {
    color: var(--gray-color);
    font-style: italic;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.form-control, .form-select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Payment Section Styles */
.payment-icons {
    display: flex;
    gap: 10px;
}

.nav-tabs .nav-link {
    color: var(--dark-color);
}

.nav-tabs .nav-link.active {
    font-weight: 500;
    color: var(--primary-color);
}

#place-order-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    background-color: #f89829;
    border-color: #f89829;
}

#place-order-btn:hover {
    background-color: #e58c21;
    border-color: #e58c21;
}

/* Order Summary Styles */
.checkout-sidebar {
    position: sticky;
    top: 20px;
}

.card-header {
    background-color: #2b4c62;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: white;
}

.edit-link:hover {
    text-decoration: underline;
}

.test-item {
    margin-bottom: 8px;
}

.upgrade-box {
    background-color: #fff9db;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 15px;
}

.worried-text {
    font-weight: 500;
    margin-bottom: 5px;
}

.upgrade-price {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Upgrade button */
.upgrade-now-btn {
    background-color: #f89829;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.upgrade-now-btn:hover {
    background-color: #e58c21;
}

/* Footer Styles */
.site-footer {
    background-color: #2b4c62;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-logo {
    max-height: 30px;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Map Info Window Styles */
.gm-style-iw {
    font-family: 'Arial', sans-serif;
}

.map-info-window {
    padding: 5px;
    max-width: 250px;
}

.map-info-window h5 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1rem;
}

.map-info-window p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.map-info-window .select-btn {
    margin-top: 10px;
    background-color: #f89829;
    border-color: #f89829;
}

/* WordPress Integration Styles */
/* These styles help integrate with standard WordPress themes */
.entry-content .main-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.wp-block-columns .main-container {
    width: 100%;
}

/* For Elementor integration */
.elementor-widget-container .main-container {
    width: 100%;
}

footer.site-footer {
    display: none;
}

.card-header.bg-light {
    background-color: #2B4C62 !important;
}

.payment-icons img {
    max-width: 12%;
}

div#order-summary {
    flex-direction: column;
}