/* Scoped Scope to prevent theme overrides */

/* Custom Purple Core Variables */
.pt-team-scope :root {
    --pt-purple-primary: #04366c;
    --pt-purple-hover: #260ea2;
    --pt-purple-light: #f3f0fc;
}

/* Header Profile Card */
.pt-team-scope .pt-team-header-card {
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pt-team-scope .pt-team-avatar-frame {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #04366c;
    padding: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.pt-team-scope .pt-team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pt-team-scope .pt-team-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f3f7;
    border-radius: 50%;
}

.pt-team-scope .pt-team-member-name {
    font-size: 32px;
    color: #0f172a;
}

.pt-team-scope .pt-team-member-role {
    font-size: 18px;
    color: #475569;
}

/* General Stats Style */
.pt-team-scope .pt-team-stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f3f0fc;
    color: #04366c;
    font-size: 20px;
}

.pt-team-scope .pt-team-stat-value {
    font-size: 18px;
    color: #0F172A;
}

/* Customized Buttons */
.pt-team-scope .pt-team-btn-primary {
    background-color: #04366c;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.pt-team-scope .pt-team-btn-primary:hover {
    background-color: #260ea2;
    transform: translateY(-2px);
}

.pt-team-scope .pt-team-btn-secondary {
    border: 2px solid #04366c;
    color: #04366c;
    background-color: transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pt-team-scope .pt-team-btn-secondary:hover {
    background-color: #04366c;
    color: #ffffff !important;
}

/* Profile cards */
.pt-team-scope .pt-team-section-card {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pt-team-scope .pt-team-section-title {
    font-size: 22px;
    color: #0f172a;
    position: relative;
    padding-bottom: 8px;
}

.pt-team-scope .pt-team-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #04366c;
    border-radius: 2px;
}

/* Expertise pills */
.pt-team-scope .pt-team-badge-pill {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-weight: 500;
}

.pt-team-scope .pt-team-pill-icon {
    color: #04366c;
}

/* Accordion projects */
.pt-team-scope .pt-team-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    overflow: hidden;
}

.pt-team-scope .pt-team-accordion-item .card-header {
    border: none;
}

.pt-team-scope .pt-team-accordion-item button:focus {
    text-decoration: none;
    box-shadow: none;
}

.pt-team-scope .pt-team-accordion-item button {
    font-size: 16px;
    text-decoration: none;
    color: #0f172a !important;
}

.pt-team-scope .pt-team-folder-icon {
    color: #04366c;
}

.pt-team-scope .pt-team-chevron {
    transition: transform 0.25s ease;
    color: #94a3b8;
}

.pt-team-scope .pt-team-accordion-item button[aria-expanded="true"] .pt-team-chevron {
    transform: rotate(90deg);
}

/* Testimonials Carousel */
.pt-team-scope .pt-team-quote-icon {
    color: #ece9fc;
}

.pt-team-scope .pt-team-quote-text {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
}

.pt-team-scope .pt-team-control-icon {
    font-size: 24px;
}

/* Creativity portfolio */
.pt-team-scope .pt-team-portfolio-img {
    height: 400px;
    object-fit: cover;
}

.pt-team-scope .pt-team-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.pt-team-scope .carousel-item:hover .pt-team-portfolio-overlay {
    opacity: 1;
}

/* Violet CTA banner */
.pt-team-scope .pt-team-cta-banner {
    background: linear-gradient(135deg, #04366c 0%, #1e0b75 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(52, 21, 179, 0.2);
}

.pt-team-scope .pt-team-cta-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.pt-team-scope .pt-team-cta-btn {
    color: #04366c !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.pt-team-scope .pt-team-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Admin Styling directory */
.pt-team-intro-section {
    padding: 40px 0;
    text-align: center;
}

a.btn.btn-info.text-white.pt-team-btn-view {
    background-color: #06235b;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .75rem 1.75rem;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.mt-3.pt-team-grid-card-action-wrapper {
    margin-top: 0 !important;
}

.pt-team-grid-card-avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #06235b;
}

.pt-team-grid-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-team-grid-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8;
}

.pt-team-grid-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

/* Hourly Rate Info Card in Header */
.pt-rate-info-card {
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.pt-rate-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 14px;
}

.pt-rate-info-header i {
    color: #04366c;
}

.pt-rate-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pt-rate-info-item {
    text-align: center;
    padding: 8px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #b8c1f0;
}

.pt-rate-info-item small {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pt-rate-info-item strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}

/* Hourly Rate Sidebar */
.pt-rate-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-rate-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.pt-rate-sidebar-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pt-rate-sidebar-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #04366c 0%, #260ea2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.pt-rate-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pt-rate-sidebar-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-rate-sidebar-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
}

/* Directory Card Rate Info */
.pt-team-grid-card-rate-info {
    margin: 12px 0;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pt-team-grid-card-rate-info small {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-team-grid-card-rate-info strong {
    font-size: 14px;
    color: #04366c;
    font-weight: 700;
}

/* Contact Modal Styling */
.pt-team-contact-section {
    text-align: center;
    padding: 40px 0;
}

.pt-team-contact-btn {
    background-color: #04366c;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 21, 179, 0.3);
}

.pt-team-contact-btn:hover {
    background-color: #260ea2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 21, 179, 0.4);
}

/* Modal styles - not scoped to work outside container */
#ptTeamContactModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

#ptTeamContactModal .pt-team-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ptTeamContactModal .pt-team-close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
}

#ptTeamContactModal .pt-team-close-btn:hover {
    color: #0f172a;
}

/* Contact Form Styling */
#ptTeamContactModal .contact-section {
    padding: 40px;
}

#ptTeamContactModal .contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

#ptTeamContactModal .content-column {
    flex: 1;
    min-width: 300px;
    position: relative;
}

#ptTeamContactModal .form-column {
    flex: 1;
    min-width: 300px;
}

#ptTeamContactModal .content-heading {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

#ptTeamContactModal .content-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

#ptTeamContactModal .meeting-button {
    display: inline-block;
    background-color: #0a2540;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#ptTeamContactModal .meeting-button:hover {
    background-color: #0a2540;
    transform: translateY(-2px);
}

#ptTeamContactModal .form-heading-container {
    margin-bottom: 25px;
    position: relative;
}

#ptTeamContactModal .form-heading {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

#ptTeamContactModal .form-heading-underline {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0a2540;
    border-radius: 2px;
    margin-top: 0;
}

#ptTeamContactModal .input-container {
    position: relative;
    margin-bottom: 20px;
}

#ptTeamContactModal .input-container input,
#ptTeamContactModal .input-container select,
#ptTeamContactModal .input-container textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background-color: #f8fafc;
}

#ptTeamContactModal .input-container input:focus,
#ptTeamContactModal .input-container select:focus,
#ptTeamContactModal .input-container textarea:focus {
    outline: none;
    border-color: #04366c;
    background-color: #ffffff;
}

#ptTeamContactModal .submit-input {
    background-color: #04366c;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: none;
}

#ptTeamContactModal .submit-input:hover {
    background-color: #04366c;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Animated elements */
#ptTeamContactModal .floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52, 21, 179, 0.1), rgba(52, 21, 179, 0.05));
    animation: float 6s ease-in-out infinite;
}

#ptTeamContactModal .floating-element-1 {
    width: 100px;
    height: 100px;
    top: -30px;
    right: -30px;
    animation-delay: 0s;
}

#ptTeamContactModal .floating-element-2 {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

#ptTeamContactModal .animated-dots {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

#ptTeamContactModal .dot {
    width: 8px;
    height: 8px;
    background-color: #04366c;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

#ptTeamContactModal .dot:nth-child(1) { animation-delay: 0s; }
#ptTeamContactModal .dot:nth-child(2) { animation-delay: 0.3s; }
#ptTeamContactModal .dot:nth-child(3) { animation-delay: 0.6s; }
#ptTeamContactModal .dot:nth-child(4) { animation-delay: 0.9s; }
#ptTeamContactModal .dot:nth-child(5) { animation-delay: 1.2s; }

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #ptTeamContactModal .contact-container {
        flex-direction: column;
    }
    
    #ptTeamContactModal .pt-team-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #ptTeamContactModal .contact-section {
        padding: 25px;
    }
}

input#id_expertise {
    width: 100%;
}