/**
 * Get In Touch Widget Styles - CPD Bangladesh
 */

.cpd-get-in-touch-widget {
    width: 100%;
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Container */
.get-in-touch-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

/* Contact Info Section */
.contact-info-section {
    padding-right: 40px;
}

.get-in-touch-title {
    color: #000;
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 125%; /* 60px */
    margin-bottom: 40px;
    margin-top: 0;
}

.contact-info-list {
    margin-bottom: 40px;
}

.contact-info-item {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 16px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.address-item {
    line-height: 1.6;
}

/* Social Media Links */
.social-media-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0093CA;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    width: 20px;
    height: 20px;
    z-index: 1;
    position: relative;
}

.social-link svg path{
    fill: #fff;
}


.social-link.linkedin-link {
    background-color: #0077b5;
}

.social-link.linkedin-link:hover {
    background-color: #006396;
}

.social-link.tiktok-link {
    background-color: #000000;
}

.social-link.tiktok-link:hover {
    background-color: #333333;
}

.social-link.whatsapp-link {
    background-color: #25d366;
}

.social-link.whatsapp-link:hover {
    background-color: #128c7e;
}

.social-link.telegram-link {
    background-color: #0088cc;
}

.social-link.telegram-link:hover {
    background-color: #006699;
}

/* Contact Form Section */
.contact-form-section {
}

.contact-form-wrapper {
    width: 100%;
}

/* Contact Form 7 Styling */
.contact-form-wrapper .wpcf7 {
    width: 100%;
}

.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea ,.contact-form-wrapper input[type="text"]::placeholder,
.contact-form-wrapper input[type="email"]::placeholder,
.contact-form-wrapper input[type="tel"]::placeholder{
    width: 100%;
    padding: 16px 20px 16px 0;
    border-radius: 0;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #000;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 14px */
}
.contact-form-wrapper textarea::placeholder{
    color: #000;
    border-left: none;
    border-right: none;
    border-top: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 14px */
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border: none;
    box-shadow: 0 0 0 3px rgba(0, 147, 202, 0.1);
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #999999;
    font-size: 16px;
}

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

/* Submit Button */
.contact-form-wrapper input[type="submit"],
.contact-form-wrapper .wpcf7-submit {
    background-color: #0093CA;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-submit:hover {
    background-color: #007bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 147, 202, 0.3);
}

/* Submit Button Arrow */
.contact-form-wrapper input[type="submit"]::after,
.contact-form-wrapper .wpcf7-submit::after {
    content: '→';
    margin-left: 8px;
    font-size: 18px;
}

/* Error and Success Messages */
.contact-form-wrapper .wpcf7-response-output {
    border: none;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-wrapper .wpcf7-mail-sent-ng,
.contact-form-wrapper .wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

/* Placeholder for missing form */
.contact-form-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.contact-form-placeholder p {
    margin: 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .get-in-touch-container {
        gap: 60px;
    }

    .contact-info-section {
        padding-right: 20px;
    }

    .get-in-touch-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .cpd-get-in-touch-widget {
        padding: 60px 0;
    }

    .get-in-touch-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-section {
        padding-right: 0;
        order: 2;
    }

    .contact-form-section {
        padding: 30px;
        order: 1;
    }

    .get-in-touch-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .cpd-get-in-touch-widget {
        padding: 40px 0;
    }

    .contact-form-section {
        padding: 0;
    }

    .get-in-touch-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .contact-info-item {
        font-size: 14px;
    }

}

/* Custom form layouts */
.contact-form-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .contact-form-wrapper .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Loading state */
.wpcf7-form.submitting input[type="submit"],
.wpcf7-form.submitting .wpcf7-submit {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.wpcf7-form.submitting input[type="submit"]::after,
.wpcf7-form.submitting .wpcf7-submit::after {
    content: '⟳';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
.social-link:focus {
    outline: 2px solid #0093CA;
    outline-offset: 2px;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper .wpcf7-submit:focus {
    outline: 2px solid #0093CA;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-form-wrapper input[type="text"],
    .contact-form-wrapper input[type="email"],
    .contact-form-wrapper input[type="tel"],
    .contact-form-wrapper textarea {
        border-color: #000000;
    }

    .social-link {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-link,
    .contact-form-wrapper input[type="submit"],
    .contact-form-wrapper .wpcf7-submit,
    .contact-form-wrapper input,
    .contact-form-wrapper textarea {
        transition: none;
    }

    .social-link:hover,
    .contact-form-wrapper input[type="submit"]:hover,
    .contact-form-wrapper .wpcf7-submit:hover {
        transform: none;
    }

    @keyframes spin {
        from { transform: none; }
        to { transform: none; }
    }
}
