/* providers-style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.top-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo .logo-image {
    height: 40px;
}

.top-nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-outline-white {
    padding: 0.6rem 1.2rem;
    border: 2px solid #0066cc;
    background: transparent;
    color: #0066cc;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-white:hover {
    background: #0066cc;
    color: white;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s;
}

.icon-link:hover {
    opacity: 0.7;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
}

.icon-link-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-link-main {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.icon-link-sub {
    font-size: 0.75rem;
    color: #666;
}

.top-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.top-burger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.top-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #f8f9fa;
}

.top-mobile-menu.show {
    display: flex;
}

/* Main Content */
.main-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 400;
    line-height: 1.5;
}

/* Provider Cards */
.providers-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.provider-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.provider-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.provider-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-avatar {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 0.25rem;
}

.provider-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.provider-type i {
    color: #999;
}

.provider-details {
    margin-bottom: 1rem;
}

.provider-address,
.provider-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.provider-address i,
.provider-status i {
    color: #999;
    width: 16px;
}

.schedule-section {
    margin-top: 1rem;
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.schedule-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-arrow {
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-arrow:hover {
    background: #e0e0e0;
}

.schedule-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.day-column {
    text-align: center;
}

.day-header {
    margin-bottom: 0.75rem;
}

.day-name {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 0.25rem;
}

.day-date {
    font-size: 0.8rem;
    color: #999;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-slot {
    background: #e8f4fd;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-2px);
}

.no-slots {
    color: #999;
    font-size: 1.5rem;
}

.next-meeting {
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    color: #856404;
    font-size: 0.9rem;
}

.next-meeting a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
}

.reservation-note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.show-more {
    text-align: center;
    margin-top: 1rem;
}

.show-more a {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.show-more a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination-btn {
    flex: 1;
    padding: 0.9rem 1.5rem;
    background: white;
    border: 2px solid #0066cc;
    color: #0066cc;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #0066cc;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Footer */
.doc-footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
}

.doc-footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.doc-footer-logo-row {
    margin-bottom: 2rem;
}

.doc-footer-logo-row .logo-image {
    height: 35px;
}

.doc-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.doc-footer-column h4,
.doc-footer-column h5 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.doc-footer-column h5 {
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.doc-footer-column ul {
    list-style: none;
}

.doc-footer-column ul li {
    margin-bottom: 0.5rem;
}

.doc-footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.doc-footer-column ul li a:hover {
    color: #0066cc;
}

.doc-footer-bottom-center {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

/* Modals */
.modal,
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active,
.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.help-modal {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
}

.custom-select {
    position: relative;
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #0052a3;
}

.signup-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.signup-link a {
    color: #0066cc;
    cursor: pointer;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.required-note {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.help-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.help-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.help-item p {
    margin: 0;
    color: #555;
}

.help-center-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.help-center-link:hover {
    text-decoration: underline;
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.success-popup-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.success-popup-icon {
    width: 70px;
    height: 70px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.success-popup-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.success-popup-body p {
    color: #666;
    margin-bottom: 1.5rem;
}

.success-popup-close {
    padding: 0.75rem 2rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.success-popup-close:hover {
    background: #0052a3;
}

/* Responsive */
@media (max-width: 768px) {
    .top-nav-actions {
        display: none;
    }

    .top-burger {
        display: flex;
    }

    .icon-link-text {
        display: none;
    }

    .full-width {
        width: 100%;
    }

    .schedule-days {
        grid-template-columns: repeat(3, 1fr);
    }

    .pagination-controls {
        flex-direction: column;
    }

    .doc-footer-columns {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}