/* IOA Contact Widget Pro - v3.0 Unified Card Layout */
.ioa-contact-widget-pro {
    font-family: 'Inter', sans-serif;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ioa-unified-card {
    display: grid;
    grid-template-columns: var(--ioa-col1-width, 1fr) var(--ioa-col2-width, 1.2fr) var(--ioa-col3-width, 1fr);
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 0 auto;
    max-width: 1280px;
}
.ioa-unified-card.no-image-column {
    grid-template-columns: var(--ioa-col1-width, 1fr) var(--ioa-col2-width, 1.2fr);
}

/* --- Column Dividers --- */
.ioa-unified-card.has-dividers .ioa-contact-details,
.ioa-unified-card.has-dividers .ioa-contact-form-wrapper {
    border-right: var(--ioa-divider-width, 1px) solid var(--ioa-divider-color, #e5e7eb);
}
.ioa-unified-card.no-image-column.has-dividers .ioa-contact-form-wrapper {
    border-right: none;
}

/* --- Column 1: Contact Details --- */
.ioa-contact-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.ioa-contact-details .details-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
}
.ioa-contact-details .details-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px; /* Reduced from 40px to tighten space */
    color: #374151;
}
.ioa-contact-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 0; /* REMOVED: margin-top: auto which caused the gap */
}
.ioa-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ioa-contact-item .ioa-item-icon {
    font-size: 20px;
    color: #1e3a8a;
    width: 24px;
    text-align: center;
    margin-top: 4px;
    flex-shrink: 0;
}
.ioa-contact-item .ioa-item-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}
.ioa-contact-item .ioa-item-text {
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
}
.ioa-contact-item .ioa-item-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.ioa-contact-item .ioa-item-text a:hover {
    color: #1e3a8a;
}

/* --- Column 2: Contact Form --- */
.ioa-contact-form-wrapper {
    padding: 40px;
    display: flex;
    flex-direction: column;
}
.ioa-form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 32px;
}
.ioa-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ioa-form-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-grow: 1; /* Allows fields to take up space */
}
.ioa-form-field-wrapper {
    display: flex; flex-direction: column; width: 100%;
}
.ioa-form-field-wrapper.width-50 { width: calc(50% - 10px); }
.ioa-form-field-wrapper.width-33 { width: calc(33.333% - 13.33px); }
.ioa-form-label {
    display: block; margin-bottom: 8px; font-weight: 500; color: #111827; font-size: 14px;
}
.ioa-form-required { color: #ef4444; }
.ioa-form-field {
    width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 15px;
    font-family: 'Inter', sans-serif; transition: border-color 0.2s, box-shadow 0.2s; background-color: #ffffff; box-sizing: border-box;
}
.ioa-form-field:focus {
    outline: none; border-color: #1e3a8a; box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.ioa-form-textarea { resize: vertical; min-height: 120px; }
.ioa-submit-btn {
    background-color: #1e3a8a; color: #ffffff; border: 1px solid transparent; padding: 12px 32px; border-radius: 6px;
    font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; width: 100%; margin-top: 24px; display: inline-flex;
    align-items: center; justify-content: center; gap: 8px;
}
.ioa-submit-btn:hover { background-color: #1e40af; transform: translateY(-2px); }
.ioa-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ioa-form-message {
    padding: 16px; border-radius: 6px; margin-bottom: 24px; font-weight: 500;
    display: none; border: 1px solid transparent;
}
.ioa-form-message.success { background-color: rgba(16, 185, 129, 0.1); color: #059669; border-color: rgba(16, 185, 129, 0.2); }
.ioa-form-message.error { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }

/* --- Column 3: Image --- */
.ioa-contact-image {
    position: relative;
    overflow: hidden; /* Important for hover effects and overlay */
}
.ioa-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}
.ioa-image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    transition: background-color 0.4s ease;
}
.ioa-contact-image[data-hover-effect="zoom"]:hover img {
    transform: scale(1.05);
}
.ioa-contact-image[data-hover-effect="grayscale"] img {
    filter: grayscale(100%);
}
.ioa-contact-image[data-hover-effect="grayscale"]:hover img {
    filter: grayscale(0%);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .ioa-unified-card {
        grid-template-columns: var(--ioa-col1-width, 1fr) var(--ioa-col2-width, 1.2fr);
    }
    .ioa-contact-image {
        display: none;
    }
    .ioa-unified-card.has-dividers .ioa-contact-form-wrapper {
        border-right: none;
    }
}
@media (max-width: 768px) {
    .ioa-contact-widget-pro {
        padding: 20px 10px;
    }
    .ioa-unified-card,
    .ioa-unified-card.no-image-column {
        grid-template-columns: 1fr;
    }
    .ioa-contact-details, .ioa-contact-form-wrapper {
        padding: 30px;
    }
    .ioa-unified-card.has-dividers .ioa-contact-details {
        border-right: none;
        border-bottom: var(--ioa-divider-width, 1px) solid var(--ioa-divider-color, #e5e7eb);
    }
    .ioa-form-field-wrapper.width-50,
    .ioa-form-field-wrapper.width-33 {
        width: 100%;
    }
}