/**
 * Xpert Point Contact Page Widget Styles - FIXED VERSION
 */

.xpert-point-contact-page {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Section */
.xp-contact-header {
    background: linear-gradient(135deg, #162675 0%, #262065 50%, #1B1464 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.xp-contact-header-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Contact Content */
.xp-contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========================================= */
/* CONTACT INFO CARDS - FIXED */
/* ========================================= */
.xp-contact-info-cards {
    width: 100%;
    padding: 40px 0;
}

.xp-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.xp-info-card {
    background: #ffffff;
    border: 2px solid #162675;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.xp-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 38, 117, 0.15);
}

.xp-info-card-icon {
    width: 60px;
    height: 60px;
    background: #1e2d6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.xp-info-card-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.xp-info-card-title {
    color: #000000;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.xp-info-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.xp-info-link {
    color: #1e2d6b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.xp-info-link:hover {
    color: #0d1642;
}

.xp-info-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ========================================= */
/* ADDRESS SECTION - FIXED */
/* ========================================= */
.xp-address-section {
    background: #f5f5f5;
    border-left: 4px solid #1e2d6b;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.xp-address-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.xp-address-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: #1e2d6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xp-address-icon svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.xp-address-content {
    flex: 1;
}

.xp-address-title {
    color: #1e2d6b;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.xp-address-text {
    color: #000000;
    font-size: 1rem;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.xp-map-link {
    display: inline-block;
    background: #1e2d6b;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.xp-map-link:hover {
    background: #0d1642;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 45, 107, 0.3);
}

/* ========================================= */
/* INFO SECTION - FIXED */
/* ========================================= */
.xp-info-section {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 35px 30px;
    border-left: 4px solid #1e2d6b;
    margin-bottom: 40px;
}

.xp-info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.xp-info-item {
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.xp-info-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(22, 38, 117, 0.1);
}

.xp-info-label {
    color: #1e2d6b;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    display: block;
}

.xp-info-value {
    color: #000000;
    font-size: 1rem;
}

.xp-map-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* Contact Cards Grid (Original Page Style) */
.xp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.xp-contact-card {
    background: #ffffff;
    border: 2px solid #162675;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.xp-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(22, 38, 117, 0.2);
    border-color: #262065;
}

.xp-contact-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #162675, #262065);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.xp-contact-card-icon svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.xp-card-title {
    color: #000000;
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.xp-contact-card p {
    color: #000000;
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.xp-contact-card p:last-child {
    margin-bottom: 0;
}

.xp-contact-card a {
    color: #162675;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.xp-contact-card a:hover {
    color: #262065;
    text-decoration: underline;
}

.xp-phone {
    color: #162675 !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    margin-top: 20px !important;
}

.xp-schedule-label {
    color: #000000 !important;
    margin-top: 10px !important;
}

.xp-schedule-time {
    font-weight: 700 !important;
    color: #162675 !important;
    font-size: 1.1rem !important;
    margin: 5px 0 15px 0 !important;
}

/* Divider */
.xp-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #162675, transparent);
    margin: 60px 0;
}

/* Map Section */
.xp-map-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #162675;
    margin-bottom: 60px;
}

.xp-map-title {
    color: #162675;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
}

.xp-map-description {
    text-align: center;
    color: #000000;
    margin: 0 0 40px 0;
    font-size: 1.1rem;
}

.xp-map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.xp-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.xp-map-info-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.xp-map-info-card {
    background: linear-gradient(135deg, rgba(22, 38, 117, 0.05), rgba(38, 32, 101, 0.05));
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #162675;
    text-align: center;
}

.xp-map-info-card svg {
    width: 30px;
    height: 30px;
    fill: #162675;
    margin: 0 auto 10px;
    display: block;
}

.xp-map-info-label {
    color: #162675;
    font-weight: 700;
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.xp-map-info-value {
    color: #000000;
    margin: 0;
    font-size: 1rem;
}

/* Form Section */
.xp-form-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #162675;
}

.xp-form-title {
    color: #162675;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 700;
}

.xp-form-description {
    text-align: center;
    color: #000000;
    margin: 0 0 40px 0;
    font-size: 1.1rem;
}

.xp-success-message {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
    border-left: 5px solid #2e7d32;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: none;
}

.xp-success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

.xp-success-message p {
    color: #2e7d32;
    font-weight: 600;
    margin: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.xp-contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.xp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.xp-form-group {
    margin-bottom: 25px;
}

.xp-form-label {
    display: block;
    color: #162675;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.xp-form-label span {
    color: #262065;
}

.xp-form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #162675;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
    box-sizing: border-box;
}

.xp-form-control:focus {
    outline: none;
    border-color: #262065;
    box-shadow: 0 0 0 4px rgba(22, 38, 117, 0.1);
    transform: translateY(-2px);
}

.xp-form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

textarea.xp-form-control {
    resize: vertical;
    min-height: 140px;
}

select.xp-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23162675' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.xp-form-error {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.xp-form-group.error .xp-form-control {
    border-color: #d32f2f;
}

.xp-form-group.error .xp-form-error {
    display: block;
}

.xp-form-group.success .xp-form-control {
    border-color: #2e7d32;
}

.xp-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #162675, #262065);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(22, 38, 117, 0.3);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.xp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 38, 117, 0.4);
    background: linear-gradient(135deg, #262065, #1B1464);
}

.xp-submit-btn:active {
    transform: translateY(-1px);
}

.xp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================= */
/* RESPONSIVE STYLES */
/* ========================================= */

@media (max-width: 992px) {
    .xp-info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .xp-info-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .xp-contact-header {
        padding: 40px 15px;
    }

    .xp-contact-header-title {
        font-size: 2.2rem;
    }

    .xp-contact-content {
        padding: 40px 15px;
    }
    
    .xp-info-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .xp-info-card {
        padding: 25px 20px;
    }

    .xp-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .xp-contact-card {
        padding: 25px;
    }

    .xp-info-section {
        padding: 30px 20px;
    }

    .xp-info-row {
        grid-template-columns: 1fr;
    }
    
    .xp-address-section {
        padding: 25px 20px;
    }
    
    .xp-address-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .xp-map-section,
    .xp-form-section {
        padding: 35px 20px;
    }

    .xp-map-title,
    .xp-form-title {
        font-size: 1.8rem;
    }

    .xp-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .xp-map-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .xp-contact-header-title {
        font-size: 1.8rem;
    }

    .xp-map-title,
    .xp-form-title {
        font-size: 1.5rem;
    }

    .xp-card-title,
    .xp-info-card-title {
        font-size: 1.2rem;
    }
    
    .xp-info-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .xp-info-card-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* =========================================================
   CONTACT FORM WIDGET — extra styles (v1.16.0)
   ========================================================= */

/* Error alert box */
.xp-contact-form-widget .xp-error-message {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08), rgba(211, 47, 47, 0.04));
    border-left: 5px solid #d32f2f;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    animation: slideIn 0.4s ease;
}

.xp-contact-form-widget .xp-error-message p {
    color: #d32f2f;
    font-weight: 600;
    margin: 0;
}

/* Spinner on submit button */
.xp-submit-btn.xp-sending {
    position: relative;
    padding-left: 48px;
}

.xp-submit-btn.xp-sending::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: xp-spin 0.8s linear infinite;
}

@keyframes xp-spin {
    to { transform: rotate(360deg); }
}

/* Wrapper fix when widget is used standalone */
.xp-contact-form-widget {
    background: #ffffff;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid #162675;
}

@media (max-width: 768px) {
    .xp-contact-form-widget {
        padding: 35px 20px;
    }
}
