/**
 * Professional Contact Page Styles - SCOPED VERSION
 * Modern, clean design with SAS Logistics Brand Colors
 * Primary: #d70006, Secondary: #ca1f26
 * SCOPED TO: body.page-contact
 */

/* ================================
   CONTACT PAGE HERO
   ================================ */

body.page-contact .contact-hero {
    background: linear-gradient(135deg, #d70006 0%, #ca1f26 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

body.page-contact .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-dots)"/></svg>');
    opacity: 0.3;
}

body.page-contact .contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

body.page-contact .contact-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.page-contact .contact-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================
   CONTACT CARDS SECTION
   ================================ */

body.page-contact .contact-cards-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

body.page-contact .contact-cards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23d70006" stroke-width="0.5" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grid)"/></svg>');
    opacity: 0.4;
}

body.page-contact .contact-cards-container {
    position: relative;
    z-index: 2;
}

body.page-contact .section-header {
    text-align: center;
    margin-bottom: 60px;
}

body.page-contact .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d70006 0%, #ca1f26 100%);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

body.page-contact .section-title {
    font-size: 42px;
    font-weight: 800;
    color: #232331;
    margin-bottom: 20px;
    line-height: 1.2;
}

body.page-contact .section-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

/* ================================
   CONTACT CARDS
   ================================ */

body.page-contact .contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

body.page-contact .contact-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(215, 0, 6, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.page-contact .contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #d70006, #ca1f26);
}

body.page-contact .contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

body.page-contact .contact-card.hq {
    border-left: 4px solid #d70006;
}

body.page-contact .contact-card.warehouse {
    border-left: 4px solid #ca1f26;
}

body.page-contact .contact-card.office {
    border-left: 4px solid #ff6b35;
}

body.page-contact .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

body.page-contact .card-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d70006;
    font-size: 24px;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

body.page-contact .card-icon:hover {
    background: #d70006;
    color: white;
    border-color: #d70006;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 0, 6, 0.2);
}

body.page-contact .card-icon i {
    transition: transform 0.3s ease;
}

body.page-contact .contact-card:hover .card-icon i {
    transform: scale(1.05);
}

/* Kahama Warehouse - Smaller Icon */
body.page-contact .contact-card.warehouse .card-icon i {
    font-size: 22px;
}

body.page-contact .card-title {
    font-size: 24px;
    font-weight: 800;
    color: #232331;
    margin: 0;
}

body.page-contact .card-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

body.page-contact .contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.page-contact .contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.page-contact .contact-info li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

body.page-contact .contact-info .info-icon {
    width: 45px;
    height: 45px;
    background: rgba(215, 0, 6, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d70006;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

body.page-contact .contact-info .info-content {
    flex: 1;
}

body.page-contact .contact-info .info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

body.page-contact .contact-info .info-value {
    font-size: 16px;
    color: #232331;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.page-contact .contact-info .info-value:hover {
    color: #d70006;
}

/* ================================
   CONTACT FORM + MAP LAYOUT
   ================================ */

body.page-contact .contact-form-map-section {
    padding: 80px 0;
    background: #ffffff;
}

body.page-contact .form-map-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: stretch;
}

body.page-contact .form-map-grid .contact-form-section,
body.page-contact .form-map-grid .map-section {
    padding: 0;
    background: transparent;
}

body.page-contact .form-map-grid .form-container {
    max-width: none;
    margin: 0;
    height: 100%;
}

body.page-contact .form-map-grid .map-container {
    border-radius: 25px;
    height: 100%;
}

body.page-contact .form-map-grid .map-container iframe {
    height: 100%;
    min-height: 620px;
}

/* ================================
   CONTACT FORM SECTION
   ================================ */

body.page-contact .contact-form-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

body.page-contact .form-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(215, 0, 6, 0.1);
}

body.page-contact .form-header {
    text-align: center;
    margin-bottom: 40px;
}

body.page-contact .form-title {
    font-size: 32px;
    font-weight: 800;
    color: #232331;
    margin-bottom: 15px;
}

body.page-contact .form-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ================================
   FORM STYLING
   ================================ */

body.page-contact .professional-form {
    position: relative;
}

body.page-contact .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

body.page-contact .form-group {
    position: relative;
    margin-bottom: 25px;
}

body.page-contact .form-group.full-width {
    grid-column: 1 / -1;
}

body.page-contact .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #232331;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.page-contact .form-label .required {
    color: #d70006;
    margin-left: 3px;
}

body.page-contact .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    color: #232331;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.page-contact .form-control:focus {
    outline: none;
    border-color: #d70006;
    box-shadow: 0 0 0 3px rgba(215, 0, 6, 0.1);
    transform: translateY(-2px);
}

body.page-contact .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

body.page-contact textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ================================
   BUTTON STYLING
   ================================ */

body.page-contact .form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

body.page-contact .btn-professional {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

body.page-contact .btn-primary-professional {
    background: linear-gradient(135deg, #d70006, #ca1f26);
    color: white;
    box-shadow: 0 8px 25px rgba(215, 0, 6, 0.3);
}

body.page-contact .btn-primary-professional:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(215, 0, 6, 0.4);
    color: white;
}

body.page-contact .btn-secondary-professional {
    background: transparent;
    color: #666;
    border: 2px solid #e9ecef;
}

body.page-contact .btn-secondary-professional:hover {
    background: #f8f9fa;
    border-color: #d70006;
    color: #d70006;
    transform: translateY(-2px);
}

/* ================================
   ALERT MESSAGES
   ================================ */

body.page-contact .alert-professional {
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: none;
    font-weight: 500;
}

body.page-contact .alert-success-professional {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

body.page-contact .alert-danger-professional {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

body.page-contact .alert-professional ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

/* ================================
   MAP SECTION
   ================================ */

body.page-contact .map-section {
    padding: 0;
    background: #f8f9fa;
    width: 100%;
}

body.page-contact .map-container {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

body.page-contact .map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

body.page-contact .map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

body.page-contact .map-overlay h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #232331;
}

body.page-contact .map-overlay p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 991px) {
    body.page-contact .contact-hero {
        padding: 60px 0;
    }
    
    body.page-contact .contact-hero h1 {
        font-size: 40px;
    }
    
    body.page-contact .contact-cards-section,
    body.page-contact .contact-form-map-section {
        padding: 60px 0;
    }

    body.page-contact .form-map-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    body.page-contact .contact-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    body.page-contact .form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    body.page-contact .contact-hero h1 {
        font-size: 32px;
    }
    
    body.page-contact .contact-hero p {
        font-size: 16px;
    }
    
    body.page-contact .section-title {
        font-size: 32px;
    }
    
    body.page-contact .contact-cards-section,
    body.page-contact .contact-form-map-section {
        padding: 50px 0;
    }
    
    body.page-contact .contact-card {
        padding: 30px 25px;
    }
    
    body.page-contact .form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    body.page-contact .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    body.page-contact .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    body.page-contact .btn-professional {
        width: 100%;
        max-width: 250px;
    }
    
    body.page-contact .form-map-grid .map-container iframe,
    body.page-contact .map-container iframe {
        height: 400px;
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    body.page-contact .contact-hero {
        padding: 50px 0;
    }
    
    body.page-contact .contact-hero h1 {
        font-size: 28px;
    }
    
    body.page-contact .section-title {
        font-size: 28px;
    }
    
    body.page-contact .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    body.page-contact .contact-card {
        padding: 25px 20px;
    }
    
    body.page-contact .card-title {
        font-size: 20px;
    }
    
    body.page-contact .form-container {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    body.page-contact .form-title {
        font-size: 24px;
    }
    
    body.page-contact .form-map-grid .map-container iframe,
    body.page-contact .map-container iframe {
        height: 350px;
        min-height: 350px;
    }
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-contact .contact-card {
    animation: fadeInUp 0.6s ease forwards;
}

body.page-contact .contact-card:nth-child(1) { animation-delay: 0.1s; }
body.page-contact .contact-card:nth-child(2) { animation-delay: 0.2s; }
body.page-contact .contact-card:nth-child(3) { animation-delay: 0.3s; }

body.page-contact .form-container {
    animation: fadeInUp 0.8s ease forwards;
}

/* ================================
   LOADING STATES
   ================================ */

body.page-contact .btn-professional.loading {
    position: relative;
    color: transparent;
}

body.page-contact .btn-professional.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
