/* 
 * MyParcelMate - Modern Component Styles
 */

/* Modern Service Cards */
.modern-service-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.modern-service-card:hover .fas.fa-arrow-right {
    transform: translateX(5px);
}

.modern-service-card a:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
}

/* Value Cards */
.value-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25) !important;
}

/* Modern Contact Cards */
.modern-contact-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25) !important;
}

.modern-contact-card:hover a {
    background: rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
}

/* Form Styling */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: white !important;
}

#contactForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4) !important;
}

#contactForm button:hover div:last-child {
    left: 100% !important;
}

/* Partner Cards - Force High Specificity */
.grid-6 .partner-card .partner-logo-container {
    width: 5rem !important;
    height: 5rem !important;
    border-radius: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
    transition: all 0.3s ease !important;
    background: white !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/*
 * Specific component styles and partner sections
 */

/* Partner Cards */
.partner-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    display: block;
    text-decoration: none;
    color: inherit;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.partner-logo-container {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.grid-6 .partner-card .partner-logo {
    height: 3.5rem !important;
    width: auto !important;
    max-width: 4.5rem !important;
    object-fit: contain !important;
    filter: brightness(0.9) contrast(1.1) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.grid-6 .partner-card .partner-logo:hover {
    filter: brightness(1) contrast(1.2) !important;
    transform: scale(1.05) !important;
}

/* Partner Service Cards */
.partner-service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.partner-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.partner-logo {
    height: 4rem;
    width: auto;
    max-width: 6rem;
    object-fit: contain;
}

/* Partner Color Schemes - Clean Version */
.partner-dpd:hover .partner-logo-container,
.partner-evri:hover .partner-logo-container,
.partner-amazon:hover .partner-logo-container,
.partner-yodel:hover .partner-logo-container,
.partner-parcelforce:hover .partner-logo-container,
.partner-dhl:hover .partner-logo-container {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #D1D5DB;
}

.partner-dpd:hover .partner-logo-container {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.partner-evri:hover .partner-logo-container {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.partner-amazon:hover .partner-logo-container {
    box-shadow: 0 8px 25px rgba(251, 146, 60, 0.2);
}

.partner-yodel:hover .partner-logo-container {
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.partner-parcelforce:hover .partner-logo-container {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.partner-dhl:hover .partner-logo-container {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

/* Service Cards */
.service-card {
    border-radius: 25px;
    padding: 2.5rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

.service-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0891b2 100%);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.4);
}

.service-secondary {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #d946ef 100%);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
}

.service-accent {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
    box-shadow: 0 20px 60px rgba(8, 145, 178, 0.4);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: white;
    display: block;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: white;
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: white;
}

.service-description {
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    color: white;
    font-size: 1.1rem;
}

.service-link {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.service-link:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-2px);
    color: white !important;
    border-color: rgba(255,255,255,0.5);
}

/* Ensure all text in service cards is visible */
.service-card * {
    color: white !important;
}

.service-card .service-icon i {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.service-card .service-title,
.service-card h3 {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.service-card .service-description,
.service-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.service-card .service-link {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.service-card .service-link:hover {
    color: white !important;
}

/* Add decorative elements to service cards */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
    border-radius: 50%;
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.service-features li i {
    color: var(--secondary);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Trust Indicators */
.trust-section {
    background: linear-gradient(135deg, #DBEAFE 0%, #DCFCE7 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.trust-badge {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Social Media */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #374151;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.linkedin:hover { background: #0A66C2; }
.social-link.whatsapp:hover { background: #25D366; }
.social-link.facebook:hover { background: #1877F2; }
.social-link.twitter:hover { background: #1DA1F2; }
.social-link.email:hover { background: #EF4444; }
.social-link.phone:hover { background: #8B5CF6; }

/* Partner Logos in Footer */
.footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    opacity: 0.7;
}

.footer-partner-logo {
    height: 3rem;
    width: auto;
    max-width: 5rem;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: brightness(1.1);
}

.footer-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

/* Responsive Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
    .social-links { gap: 1rem; }
    .footer-partners { gap: 1rem; }
    .trust-badges { justify-content: center; }
}