/**
 * Contact Form Plugin - Styles
 */
/* ===============================
   GLOBAL FONT – PURE POPPINS
================================ */
.cfp-contact-wrapper,
.cfp-contact-wrapper * {
    font-family: 'Poppins', sans-serif !important;
}

/* Reset and Base Styles */
.cfp-contact-wrapper * {
    box-sizing: border-box;
}

/* Outer Header - Above the card */
.cfp-outer-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.cfp-outer-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000000;
    line-height: 1.2;
}

.cfp-title-highlight {
    color: #4888E8;
}

.cfp-outer-subtitle {
    font-size: 19px;
    color: #000000;
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Main Container */
.cfp-contact-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cfp-contact-container {
    max-width: 100%;
}

/* Content Layout */
.cfp-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
    background: linear-gradient(135deg, #4888E8 0%, #5796F3 100%);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(72, 136, 232, 0.3);
}

/* Form Container */
.cfp-form-container {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 0; /* Prevents flex item overflow */
}

/* Form Styles */
.cfp-form {
    width: 100%;
}

.cfp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.cfp-name-row .cfp-form-group {
    flex: 1;
    min-width: 0; /* Prevents flex item overflow */
}

.cfp-form-group {
    margin-bottom: 20px;
    width: 100%;
}

.cfp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500 !important;
    color: #333;
}

.cfp-required {
    color: #e74c3c;
    font-weight: bold;
}

/* Form Controls with 10px Border Radius */
.cfp-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px !important;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.cfp-form-control:focus {
    outline: none;
    border-color: #4888E8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(72, 136, 232, 0.1);
    border-radius: 10px !important;
}

.cfp-form-control::placeholder {
    color: #999;
}

select.cfp-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234888E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
    border-radius: 10px !important;
}

/* Textarea Specific Styling */
textarea.cfp-form-control,
textarea.cfp-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    border-radius: 10px !important;
    padding: 14px 16px;
}

/* Submit Button Container */
.cfp-submit-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cfp-submit-btn,  
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 200px;
    background: #4888E8 !important;
    color: #fff !important;
    padding: 16px 32px !important;
    border-radius: 20px !important;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(72, 136, 232, 0.4);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cfp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(72, 136, 232, 0.5);
}

.cfp-btn-icon-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-bottom: 0;
}

.cfp-btn-text-contact {
    font-size: 18px;
    white-space: nowrap;
}

.cfp-submit-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cfp-submit-btn:hover .cfp-submit-icon {
    transform: translateX(3px);
}

.cfp-submit-btn.cfp-submitting {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.cfp-submit-btn.cfp-submitting .cfp-btn-text {
    color: #666;
}

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

/* Response Message */
.cfp-response-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.cfp-response-message.cfp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cfp-response-message.cfp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact Info Container */
.cfp-info-container {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* Prevents flex item overflow */
}

/* Contact Header as a Card Item */
.cfp-contact-header-item {
    padding: 25px !important;
    margin-bottom: 5px;
}

.cfp-contact-header-content {
    width: 100%;
}

.cfp-info-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
}

.cfp-info-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.6;
}

.cfp-contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contact Items with Images */
.cfp-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #3e6fb9;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cfp-contact-item:hover {
    background: #3562a8;
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cfp-contact-img {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.cfp-contact-img img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* No Link Style - Plain Text */
.cfp-contact-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
    word-break: break-word;
}

.cfp-contact-text .cfp-no-link,
.cfp-contact-text span {
    color: #fff;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    cursor: default;
}

/* Remove all possible underlines from links */
.cfp-contact-text a,
.cfp-contact-text a:hover,
.cfp-contact-text a:focus,
.cfp-contact-text a:active,
.cfp-contact-text a:visited {
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .cfp-content {
        gap: 25px;
        padding: 30px;
    }
    
    .cfp-form-container {
        padding: 30px;
    }
    
    .cfp-info-container {
        flex: 0 0 340px;
    }
}

@media (max-width: 992px) {
    .cfp-content {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
    
    .cfp-info-container {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .cfp-form-container {
        max-width: 100%;
        padding: 30px;
    }
    
    .cfp-contact-items {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .cfp-contact-item {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .cfp-outer-title {
        font-size: 32px;
    }
    
    .cfp-outer-subtitle {
        font-size: 16px;
    }
    
    .cfp-contact-wrapper {
        padding: 0 15px;
    }
    
    .cfp-content {
        padding: 25px;
        border-radius: 20px;
        gap: 25px;
    }
    
    .cfp-form-container {
        padding: 25px;
        border-radius: 15px;
    }
    
    .cfp-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cfp-info-title {
        font-size: 24px;
    }
    
    .cfp-contact-item {
        padding: 18px 20px;
    }
    
    .cfp-contact-header-item {
        padding: 20px !important;
    }
    
    .cfp-contact-items {
        flex-direction: column;
    }
    
    .cfp-contact-item {
        min-width: auto;
    }
    
    .cfp-submit-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .cfp-outer-header {
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .cfp-outer-title {
        font-size: 28px;
    }
    
    .cfp-outer-subtitle {
        font-size: 15px;
    }
    
    .cfp-contact-wrapper {
        padding: 0 10px;
    }
    
    .cfp-content {
        padding: 20px;
        border-radius: 15px;
        gap: 20px;
    }
    
    .cfp-form-container {
        padding: 20px;
        border-radius: 12px;
    }
    
    .cfp-form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .cfp-contact-item {
        padding: 15px 18px;
    }
    
    .cfp-contact-header-item {
        padding: 18px !important;
    }
    
    .cfp-contact-img {
        width: 45px;
        height: 45px;
    }
    
    .cfp-contact-img img {
        width: 32px;
        height: 32px;
    }
    
    .cfp-btn-text-contact {
        font-size: 16px;
    }
    
    .cfp-submit-icon {
        width: 18px;
        height: 18px;
    }
    
    .cfp-submit-btn {
        padding: 14px 28px !important;
    }
}

@media (max-width: 400px) {
    .cfp-content {
        padding: 15px;
    }
    
    .cfp-form-container {
        padding: 15px;
    }
    
    .cfp-form-row {
        gap: 0;
    }
    
    .cfp-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cfp-contact-text {
        text-align: center;
    }
}

/* Accessibility */
.cfp-form-control:focus-visible {
    outline: 2px solid #4888E8;
    outline-offset: 2px;
    border-radius: 10px !important;
}

/* Field Error Styles */
.cfp-form-control.cfp-invalid {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

.cfp-field-error {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Character Counter */
.cfp-char-counter {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.cfp-char-counter.cfp-over-limit {
    color: #e74c3c;
    font-weight: bold;
}

/* Print Styles */
@media print {
    .cfp-content {
        background: #fff;
        padding: 20px;
    }
    
    .cfp-contact-item {
        background: #f5f5f5;
        color: #333;
    }
    
    .cfp-submit-btn {
        display: none;
    }
}