/**
 * Contact Info Block Styles
 * Modern flexbox approach with proper responsive design
 */

/* Main contact info block wrapper */
.ps5-contact-info-block {
    position: relative;
    width: 491px;
    min-height: 600px;
    background: #2E395E;
    border-radius: 0px 100px;
    padding: 54px 50px;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 82px; /* Space between sections */
}

/* Header section with heading and subheading */
.ps5-contact-info-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.ps5-contact-info-heading {
    /* Inter/SB/28 */
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 34px;
    color: #FFFFFF;
    margin: 0;
}

.ps5-contact-info-subheading {
    /* Inter/R/18 */
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #F3F6F9;
    margin: 0;
}

/* Contact details section */
.ps5-contact-info-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-shrink: 0;
}

.ps5-contact-info-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

/* Contact icons */
.ps5-contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps5-contact-icon svg {
    width: 100%;
    height: 100%;
}

/* Contact text */
.ps5-contact-text {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0;
}

/* Special styling for address text (multi-line) */
.ps5-contact-address .ps5-contact-text {
    line-height: 22px;
    max-width: 260px;
    text-align: left;
}

/* Social section */
.ps5-contact-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: auto; /* Push to bottom */
    flex-shrink: 0;
}

.ps5-social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.ps5-social-link {
    width: 30px;
    height: 30px;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
}

.ps5-social-circle {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social link backgrounds */
.ps5-social-twitter .ps5-social-circle {
    background: #05A1A1;
}

.ps5-social-instagram .ps5-social-circle {
    background: #FFFFFF;
}

.ps5-social-facebook .ps5-social-circle {
    background: #05A1A1;
}

/* Cursor icon */
.ps5-cursor-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ps5-cursor-icon svg {
    width: 100%;
    height: 100%;
}

/* Background illustration - ONLY this element uses absolute positioning */
.ps5-contact-illustration {
    position: absolute;
    width: 250.29px;
    height: 210.55px;
    right: 0px;
    bottom: 0px;
    transform: rotate(-3.82deg);
    pointer-events: none;
    z-index: 1;
}

.ps5-contact-illustration svg {
    width: 100%;
    height: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .ps5-contact-info-block {
        width: 100%;
        max-width: 400px;
        min-height: 500px;
        border-radius: 0px 50px;
        padding: 40px 30px;
        gap: 40px;
    }
    
    .ps5-contact-info-heading {
        font-size: 24px;
        line-height: 30px;
    }
    
    .ps5-contact-info-subheading {
        font-size: 16px;
        line-height: 20px;
    }
    
    .ps5-contact-info-details {
        gap: 40px;
    }
    
    .ps5-contact-text {
        font-size: 16px;
        line-height: 20px;
    }
    
    .ps5-contact-address .ps5-contact-text {
        max-width: 100%;
    }
    
    .ps5-contact-illustration {
        width: 120px;
        height: 100px;
        bottom: 20px;
        right: 10px;
    }
}

/* Admin preview styles */
.ps5-contact-info-preview {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    margin-top: 20px;
}

.ps5-contact-info-preview .ps5-contact-info-block {
    transform: scale(0.8);
    transform-origin: top left;
    margin-bottom: -120px;
}

/* Background image overlay support */
.ps5-contact-info-block[style*="background-image"] {
    background-blend-mode: overlay;
}

/* Custom border radius support */
.ps5-contact-info-block.custom-radius {
    border-radius: var(--custom-border-radius, 0px 100px);
}

/* Custom padding support */
.ps5-contact-info-block.custom-padding {
    padding: var(--custom-padding, 54px 50px);
}

/* Custom margin support */
.ps5-contact-info-block.custom-margin {
    margin: var(--custom-margin, 0);
}