<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* Express Entry Calculator Container */
.ee-calculator-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

/* Header Styles */
.ee-calculator-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ee-calculator-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #B22222;
    margin-bottom: 15px;
    line-height: 1.2;
}

.ee-subtitle {
    font-size: 1.1rem;
    color: black;
    font-weight: 400;
}

/* Progress Bar */
.ee-progress-container {
    margin-bottom: 30px;
}

.ee-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ee-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #B22222 0%, #D63747 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 10%; /* Start with first step */
}

.ee-progress-text {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

/* Score Container */
.ee-score-container {
    position: fixed;
    top: 120px;
    right: 30px;
    z-index: 100;
}

.ee-score-circle {
    width: 120px;
    height: 120px;
    border: 4px solid #B22222;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    position: relative;
}

.ee-score-number {
    font-size: 2rem;
    font-weight: 700;
    color: #B22222;
    line-height: 1;
}

.ee-score-total {
    font-size: 1rem;
    color: #6C757D;
    font-weight: 500;
}

/* Form Styles */
.ee-calculator-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.ee-form-step {
    display: none;
    animation: eeSlideIn 0.5s ease;
}

.ee-form-step.active {
    display: block;
}

@keyframes eeSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.ee-form-step h2 {
    font-size: 1.8rem;
    color: #B22222;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #B22222;
    padding-bottom: 15px;
}

.ee-step-description {
    font-size: 1rem;
    color: #6C757D;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form Groups */
.ee-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ee-form-group {
    flex: 1;
    margin-bottom: 25px;
}

.ee-form-group.half-width {
    flex: 0 0 calc(50% - 10px);
}

.ee-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
    font-size: 0.95rem;
}

.ee-form-group input,
.ee-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #DEE2E6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.ee-form-group input:focus,
.ee-form-group select:focus {
    outline: none;
    border-color: #B22222;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

.ee-form-group input::placeholder {
    color: #adb5bd;
}

/* Phone Input */
.ee-phone-input {
    display: flex;
    gap: 10px;
}

.ee-phone-input input:first-child {
    flex: 0 0 80px;
    text-align: center;
    font-weight: 600;
}

.ee-phone-input input:last-child {
    flex: 1;
}

/* Help Text */
.ee-help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Summary Section */
.ee-summary-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #B22222;
}

.ee-summary-section h3 {
    color: #B22222;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.ee-score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ee-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ee-score-item.factor-total {
    background: #e3f2fd;
    font-weight: 600;
    border-color: #B22222;
}

.ee-score-item.total {
    background: #B22222;
    color: white;
    font-size: 1.1rem;
}

/* Review Section */
.ee-review-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #B22222;
}

.ee-review-section h3 {
    color: #B22222;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.important-note {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 25px;
}

.important-note h4 {
    color: #856404;
    margin-bottom: 15px;
}

.important-note ul {
    margin: 0;
    padding-left: 20px;
}

.important-note li {
    margin-bottom: 8px;
    color: #856404;
}

/* Checkbox Styling */
input[type="checkbox"].ee-checkbox {
    width: auto !important;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #B22222;
}

.ee-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

/* Points Display */
.ee-points-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #B22222;
}

.ee-points-label {
    font-weight: 600;
    color: #2C3E50;
}

.ee-points-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #B22222;
    min-width: 30px;
}

.ee-view-table-btn {
    background: #B22222;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ee-view-table-btn:hover {
    background: #8B1A1A;
    transform: translateY(-1px);
}

/* Navigation Buttons */
.ee-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #B22222;
}

.ee-form-navigation button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#eePrevBtn {
    background: #6c757d;
    color: white;
}

#eePrevBtn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

#eeNextBtn, #eeCalculateBtn, #eeCRSNextBtn, #eeCRSCalculateBtn, #eeBasicNextBtn, #eeBasicCalculateBtn {
    background: #B22222;
    color: white;
}

#eeNextBtn:hover, #eeCalculateBtn:hover, #eeCRSNextBtn:hover, #eeCRSCalculateBtn:hover, #eeBasicNextBtn:hover, #eeBasicCalculateBtn:hover {
    background: #8B1A1A;
    transform: translateY(-1px);
}

#eePrevBtn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styles */
.ee-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.ee-modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    animation: eeModalSlideIn 0.3s ease;
}

@keyframes eeModalSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.ee-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: #adb5bd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ee-close:hover {
    color: #B22222;
}

/* Result Modal */
.ee-result-modal-content {
    text-align: center;
    max-width: 600px;
}

.ee-result-modal-content h2 {
    color: #B22222;
    margin-bottom: 30px;
    font-size: 2rem;
}

.ee-result-score {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #B22222 0%, #D63747 100%);
    color: white;
    border-radius: 12px;
    display: inline-block;
    min-width: 200px;
}

.ee-result-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.ee-result-total {
    font-size: 1.5rem;
    opacity: 0.9;
}

.ee-result-message {
    margin: 30px 0;
    padding: 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.ee-result-message.eligible {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ee-result-message.not-eligible {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ee-result-message ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.ee-result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.ee-btn-primary, .ee-btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.ee-btn-primary {
    background: #B22222;
    color: white;
}

.ee-btn-primary:hover {
    background: #8B1A1A;
    transform: translateY(-2px);
}

.ee-btn-secondary {
    background: #6c757d;
    color: white;
}

.ee-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Points Tables */
.ee-points-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.ee-points-table th,
.ee-points-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #DEE2E6;
}

.ee-points-table th {
    background: #B22222;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    font-size: 0.85rem;
}

.ee-points-table tr:hover {
    background: #f8f9fa;
}

.ee-points-table td:last-child {
    text-align: center;
    font-weight: 600;
    color: #333;
}

.ee-points-table td:first-child {
    text-align: left;
}

/* Express Entry Contact Form Styling */
#express-entry-contact-form {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px auto;
    max-width: 700px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border: 2px solid #B22222;
    display: none;
    position: relative;
    z-index: 10;
}

#express-entry-contact-form h2 {
    color: #B22222;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

#express-entry-contact-form p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}
/* Animation when form appears */
#express-entry-contact-form.show {
    display: block;
    animation: eeSlideDown 0.5s ease;
}

/* Express Entry Form Container Styling */
.ee-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ee-form-container h3 {
    color: #B22222;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Contact Form 7 field styling for Express Entry */
#express-entry-contact-form .wpcf7-form {
    text-align: center;
}

#express-entry-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    position: relative;
}

/* Form Row Styling for Express Entry - CENTERED WITH LABELS ABOVE */
#express-entry-contact-form .form-row {
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Labels above each field - CENTERED */
#express-entry-contact-form .form-row:has(input[name="ee-full-name"])::before {
    content: "Full Legal Name *";
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-contact-form .form-row:has(input[name="ee-email-address"])::before {
    content: "Email Address *";
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-contact-form .form-row:has(input[name="ee-phone"])::before {
    content: "Phone Number";
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-contact-form .form-row:has(input[name="ee-citizenship"])::before {
    content: "Country of Citizenship";
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-contact-form .form-row:has(textarea[name="ee-consultation-request"])::before {
    content: "Additional Questions or Comments";
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

/* Input Field Styling for Express Entry Form - CENTERED */
#express-entry-contact-form input[type="text"],
#express-entry-contact-form input[type="email"],
#express-entry-contact-form input[type="tel"],
#express-entry-contact-form textarea {
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px 20px;
    border: 2px solid #B22222 !important;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    display: block;
    background: white !important;
    color: #333 !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus states */
#express-entry-contact-form input[type="text"]:focus,
#express-entry-contact-form input[type="email"]:focus,
#express-entry-contact-form input[type="tel"]:focus,
#express-entry-contact-form textarea:focus {
    border-color: #8B1A1A !important;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.2) !important;
    outline: none !important;
    background: #fafafa !important;
}

/* Textarea specific styling */
#express-entry-contact-form textarea[name="ee-consultation-request"] {
    text-align: left;
    min-height: 120px;
    resize: vertical;
    color: #333 !important;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

#express-entry-contact-form textarea[name="ee-consultation-request"]::placeholder {
    color: #888 !important;
    font-style: italic;
}

/* Character Counter Styling for Express Entry */
.ee-character-counter {
    text-align: center;
    margin: 5px auto 15px;
    font-size: 0.85rem;
    color: #666;
    max-width: 500px;
}

.ee-character-counter.warning {
    color: #dc3545;
    font-weight: 600;
}

.ee-character-counter.over-limit {
    color: #dc3545;
    font-weight: 700;
    animation: eePulse 1s infinite;
}

@keyframes eePulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Score Display Styling for Express Entry */
.ee-score-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #B22222;
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    text-align: center;
    max-width: 400px;
    overflow: hidden;
}

.ee-score-display h4 {
    color: #B22222;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#ee-display-score {
    font-family: 'Arial', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Submit Button Styling for Express Entry */
#express-entry-contact-form input[type="submit"],
#express-entry-contact-form .btn-submit {
    background: #B22222 !important;
    color: white !important;
    padding: 15px 25px;
    border: 2px solid #B22222 !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 10px;
    display: block;
    width: auto;
    min-width: 280px;
    max-width: 90%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    height: auto;
}

#express-entry-contact-form input[type="submit"]:hover,
#express-entry-contact-form .btn-submit:hover {
    background: white !important;
    color: #B22222 !important;
    border-color: #B22222 !important;
    transform: translateY(-2px);
}

/* Acceptance Checkbox Styling for Express Entry */
#express-entry-contact-form .wpcf7-acceptance {
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#express-entry-contact-form .wpcf7-acceptance input[type="checkbox"] {
    width: auto !important;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #B22222;
}

#express-entry-contact-form .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #2C3E50;
    cursor: pointer;
    line-height: 1.4;
    text-align: center;
}

/* Hidden fields for Express Entry */
#express-entry-contact-form input[type="hidden"] {
    display: none !important;
}

/* Placeholder styling for Express Entry */
#express-entry-contact-form input::placeholder,
#express-entry-contact-form textarea::placeholder {
    color: #888 !important;
    font-style: italic;
    opacity: 0.8;
}

/* Animation when Express Entry form appears */
#express-entry-contact-form.show {
    display: block;
    animation: eeSlideDown 0.5s ease;
}

@keyframes eeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form 7 validation styling for Express Entry */
#express-entry-contact-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

#express-entry-contact-form .wpcf7-validation-errors {
    color: #dc3545;
    background: #fff5f5 !important;
    border: 1px solid #dc3545;
    border-radius: 5px;
    padding: 10px;
    margin: 15px auto;
    max-width: 500px;
    text-align: center;
}

/* Success message styling for Express Entry */
#express-entry-contact-form .wpcf7-mail-sent-ok {
    color: #155724 !important;
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    border-radius: 5px !important;
    padding: 15px !important;
    margin: 15px auto !important;
    max-width: 500px !important;
    text-align: center !important;
    font-weight: 600 !important;
    display: block !important;
}

/* Contact Form 7 Response Output for Express Entry */
#express-entry-contact-form .wpcf7-response-output {
    display: block !important;
    margin: 15px auto !important;
    text-align: center !important;
    max-width: 500px !important;
}

/* Loading spinner for Express Entry */
#express-entry-contact-form .wpcf7-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #B22222;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: eeSpin 1s linear infinite;
    margin: 20px auto;
    display: block !important;
}

/* General form field containers for Express Entry */
#express-entry-contact-form .wpcf7-form-control-wrap {
    margin-bottom: 15px;
    text-align: center;
}

/* Force center alignment for all CF7 elements in Express Entry */
#express-entry-contact-form .wpcf7-form p {
    text-align: center;
    margin: 20px auto;
}

#express-entry-contact-form .wpcf7-form br {
    display: none;
}

/* Remove unwanted elements for Express Entry */
#express-entry-contact-form::after,
#express-entry-contact-form .wpcf7-form::after,
.ee-form-container::after {
    display: none !important;
}

.wpcf7 .screen-reader-response {
    display: none !important;
}

/* Score Update Animation */
.ee-score-update {
    animation: eeScoreUpdate 0.5s ease;
}

@keyframes eeScoreUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Loading state */
.ee-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ee-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #B22222;
    border-radius: 50%;
    animation: eeSpin 1s linear infinite;
}

@keyframes eeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Eligibility Result Styling */
#eeEligibilityResult {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

#eeEligibilityResult.eligible {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#eeEligibilityResult.not-eligible {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#eeEligibilityTitle {
    font-weight: bold;
    margin-bottom: 10px;
}

/* EXPRESS ENTRY CONTACT FORMS - FIXED STYLING */
#express-entry-basic-contact-form,
#express-entry-crs-contact-form {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px auto;
    max-width: 700px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid #B22222;
    display: none;
    position: relative;
    z-index: 10;
    /* Override any background from parent elements */
    background-color: white !important;
    background-image: none !important;
}

#express-entry-basic-contact-form.show,
#express-entry-crs-contact-form.show {
    display: block !important;
    animation: eeSlideDown 0.5s ease;
}

#express-entry-basic-contact-form h2,
#express-entry-crs-contact-form h2,
#express-entry-basic-contact-form h3,
#express-entry-crs-contact-form h3 {
    color: #B22222 !important;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

#express-entry-basic-contact-form p,
#express-entry-crs-contact-form p {
    color: #666 !important;
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-align: center;
}

/* Form Container */
.ee-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white !important;
    padding: 20px;
    border-radius: 8px;
}

.ee-form-container h3 {
    color: #B22222 !important;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Contact Form 7 Integration */
#express-entry-basic-contact-form .wpcf7-form,
#express-entry-crs-contact-form .wpcf7-form {
    text-align: center;
    background: transparent !important;
}

#express-entry-basic-contact-form .wpcf7-form-control-wrap,
#express-entry-crs-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    position: relative;
}

/* Form Rows */
#express-entry-basic-contact-form .form-row,
#express-entry-crs-contact-form .form-row {
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
}

/* Labels - Using CSS pseudo-elements for better control */
#express-entry-basic-contact-form .form-row:has(input[name="ee-basic-contact-name"])::before {
    content: "Full Legal Name *";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    background: white !important;
}

#express-entry-basic-contact-form .form-row:has(input[name="ee-basic-contact-email"])::before {
    content: "Email Address *";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-basic-contact-form .form-row:has(input[name="ee-basic-contact-phone"])::before {
    content: "Phone Number";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-basic-contact-form .form-row:has(input[name="ee-basic-contact-country"])::before {
    content: "Country of Citizenship";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-basic-contact-form .form-row:has(textarea[name="ee-basic-consultation"])::before {
    content: "Additional Questions or Comments";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

/* CRS Form Labels */
#express-entry-crs-contact-form .form-row:has(input[name="ee-crs-contact-name"])::before {
    content: "Full Legal Name *";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-crs-contact-form .form-row:has(input[name="ee-crs-contact-email"])::before {
    content: "Email Address *";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-crs-contact-form .form-row:has(input[name="ee-crs-contact-phone"])::before {
    content: "Phone Number";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-crs-contact-form .form-row:has(input[name="ee-crs-contact-country"])::before {
    content: "Country of Citizenship";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

#express-entry-crs-contact-form .form-row:has(textarea[name="ee-crs-consultation-request"])::before {
    content: "Additional Questions or Comments";
    display: block;
    font-weight: 600;
    color: #2C3E50 !important;
    margin-bottom: 5px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

/* Input Field Styling - CENTERED */
#express-entry-basic-contact-form input[type="text"],
#express-entry-basic-contact-form input[type="email"],
#express-entry-basic-contact-form input[type="tel"],
#express-entry-basic-contact-form textarea,
#express-entry-crs-contact-form input[type="text"],
#express-entry-crs-contact-form input[type="email"],
#express-entry-crs-contact-form input[type="tel"],
#express-entry-crs-contact-form textarea {
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto;
    padding: 15px 20px;
    border: 2px solid #B22222 !important;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    display: block;
    background: white !important;
    color: #333 !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus states */
#express-entry-basic-contact-form input[type="text"]:focus,
#express-entry-basic-contact-form input[type="email"]:focus,
#express-entry-basic-contact-form input[type="tel"]:focus,
#express-entry-basic-contact-form textarea:focus,
#express-entry-crs-contact-form input[type="text"]:focus,
#express-entry-crs-contact-form input[type="email"]:focus,
#express-entry-crs-contact-form input[type="tel"]:focus,
#express-entry-crs-contact-form textarea:focus {
    border-color: #8B1A1A !important;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.2) !important;
    outline: none !important;
    background: #fafafa !important;
}

/* Textarea specific styling */
#express-entry-basic-contact-form textarea[name="ee-basic-consultation"],
#express-entry-crs-contact-form textarea[name="ee-crs-consultation-request"] {
    text-align: left !important;
    min-height: 120px;
    resize: vertical;
    color: #333 !important;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    background: white !important;
}

#express-entry-basic-contact-form textarea[name="ee-basic-consultation"]::placeholder,
#express-entry-crs-contact-form textarea[name="ee-crs-consultation-request"]::placeholder {
    color: #888 !important;
    font-style: italic;
}

/* Score Display Styling */
.ee-score-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #B22222;
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    text-align: center;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ee-score-display h4 {
    color: #B22222 !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

#ee-basic-display-score,
#ee-crs-display-score {
    font-family: 'Arial', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #333 !important;
}

#ee-basic-display-score div:first-child,
#ee-crs-display-score div:first-child {
    font-size: 1.5rem !important;
    line-height: 1.3;
}

/* Submit Button Styling */
#express-entry-basic-contact-form input[type="submit"],
#express-entry-basic-contact-form .btn-submit,
#express-entry-crs-contact-form input[type="submit"],
#express-entry-crs-contact-form .btn-submit {
    background: #B22222 !important;
    color: white !important;
    padding: 15px 25px;
    border: 2px solid #B22222 !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 10px;
    display: block;
    width: auto;
    min-width: 280px;
    max-width: 90%;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    height: auto;
}

#express-entry-basic-contact-form input[type="submit"]:hover,
#express-entry-basic-contact-form .btn-submit:hover,
#express-entry-crs-contact-form input[type="submit"]:hover,
#express-entry-crs-contact-form .btn-submit:hover {
    background: white !important;
    color: #B22222 !important;
    border-color: #B22222 !important;
    transform: translateY(-2px);
}

/* Acceptance Checkbox Styling */
#express-entry-basic-contact-form .wpcf7-acceptance,
#express-entry-crs-contact-form .wpcf7-acceptance {
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: transparent !important;
    gap: 10px !important;
    margin-top: 2px !important;
}

#express-entry-basic-contact-form .wpcf7-acceptance input[type="checkbox"],
#express-entry-crs-contact-form .wpcf7-acceptance input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transform: scale(1.3) !important;
    accent-color: #B22222;
}

#express-entry-basic-contact-form .wpcf7-acceptance label,
#express-entry-crs-contact-form .wpcf7-acceptance label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    font-weight: 500;
    color: #2C3E50 !important;
    cursor: pointer;
    line-height: 1.4;
    text-align: left !important;
    flex: 1 !important;
    margin: 0 !important;
}

/* Hidden fields */
#express-entry-basic-contact-form input[type="hidden"],
#express-entry-crs-contact-form input[type="hidden"] {
    display: none !important;
}

/* Placeholder styling */
#express-entry-basic-contact-form input::placeholder,
#express-entry-basic-contact-form textarea::placeholder,
#express-entry-crs-contact-form input::placeholder,
#express-entry-crs-contact-form textarea::placeholder {
    color: #888 !important;
    font-style: italic;
    opacity: 0.8;
}

/* Animation when form appears */
@keyframes eeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form 7 validation styling */
#express-entry-basic-contact-form .wpcf7-not-valid,
#express-entry-crs-contact-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

#express-entry-basic-contact-form .wpcf7-validation-errors,
#express-entry-crs-contact-form .wpcf7-validation-errors {
    color: #dc3545 !important;
    background: #fff5f5 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 5px !important;
    padding: 10px !important;
    margin: 15px auto !important;
    max-width: 500px !important;
    text-align: center !important;
}

/* Success message styling */
#express-entry-basic-contact-form .wpcf7-mail-sent-ok,
#express-entry-crs-contact-form .wpcf7-mail-sent-ok {
    color: #155724 !important;
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    border-radius: 5px !important;
    padding: 15px !important;
    margin: 15px auto !important;
    max-width: 500px !important;
    text-align: center !important;
    font-weight: 600 !important;
    display: block !important;
}

/* Contact Form 7 Response Output */
#express-entry-basic-contact-form .wpcf7-response-output,
#express-entry-crs-contact-form .wpcf7-response-output {
    display: block !important;
    margin: 15px auto !important;
    text-align: center !important;
    max-width: 500px !important;
    background: white !important;
}

/* Loading spinner */
#express-entry-basic-contact-form .wpcf7-spinner,
#express-entry-crs-contact-form .wpcf7-spinner {
    border: 3px solid #f3f3f3 !important;
    border-top: 3px solid #B22222 !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    animation: eeSpin 1s linear infinite !important;
    margin: 20px auto !important;
    display: block !important;
}

@keyframes eeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Force center alignment for all CF7 elements */
#express-entry-basic-contact-form .wpcf7-form p,
#express-entry-crs-contact-form .wpcf7-form p {
    text-align: center !important;
    margin: 20px auto !important;
    background: transparent !important;
}

#express-entry-basic-contact-form .wpcf7-form br,
#express-entry-crs-contact-form .wpcf7-form br {
    display: none !important;
}

/* Remove unwanted elements */
#express-entry-basic-contact-form::after,
#express-entry-basic-contact-form .wpcf7-form::after,
#express-entry-crs-contact-form::after,
#express-entry-crs-contact-form .wpcf7-form::after,
.ee-form-container::after {
    display: none !important;
}

.wpcf7 .screen-reader-response {
    display: none !important;
}

/* Character Counter Styling */
.ee-character-counter {
    text-align: center;
    margin: 5px auto 15px;
    font-size: 0.85rem;
    color: #666 !important;
    max-width: 500px;
    background: transparent !important;
}

.ee-character-counter.warning {
    color: #dc3545 !important;
    font-weight: 600;
}

.ee-character-counter.over-limit {
    color: #dc3545 !important;
    font-weight: 700;
    animation: eePulse 1s infinite;
}

@keyframes eePulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #express-entry-basic-contact-form,
    #express-entry-crs-contact-form {
        padding: 25px;
        margin: 20px auto;
        max-width: 95%;
    }

    .ee-form-container {
        max-width: 100%;
        padding: 15px;
    }

    #express-entry-contact-form .wpcf7-acceptance,
    #express-entry-basic-contact-form .wpcf7-acceptance,
    #express-entry-crs-contact-form .wpcf7-acceptance {
        max-width: 100%;
        padding: 0 10px;
        gap: 8px !important;
    }

    #express-entry-contact-form .wpcf7-acceptance input[type="checkbox"],
    #express-entry-basic-contact-form .wpcf7-acceptance input[type="checkbox"],
    #express-entry-crs-contact-form .wpcf7-acceptance input[type="checkbox"] {
        transform: scale(1.2) !important; /* Slightly smaller on mobile */
        margin-top: 3px !important;
    }

    #express-entry-basic-contact-form input[type="text"],
    #express-entry-basic-contact-form input[type="email"],
    #express-entry-basic-contact-form input[type="tel"],
    #express-entry-basic-contact-form textarea,
    #express-entry-crs-contact-form input[type="text"],
    #express-entry-crs-contact-form input[type="email"],
    #express-entry-crs-contact-form input[type="tel"],
    #express-entry-crs-contact-form textarea {
        max-width: 100%;
        padding: 12px 15px;
    }

    .ee-score-display {
        padding: 20px;
        margin: 20px auto;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    #express-entry-basic-contact-form,
    #express-entry-crs-contact-form {
        padding: 20px;
    }

    .ee-form-container h3 {
        font-size: 1.4rem;
    }

    #express-entry-basic-contact-form input[type="submit"],
    #express-entry-basic-contact-form .btn-submit,
    #express-entry-crs-contact-form input[type="submit"],
    #express-entry-crs-contact-form .btn-submit {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 200px;
        max-width: 95%;
    }
}

/* Override any theme/parent backgrounds */
#express-entry-basic-contact-form *,
#express-entry-crs-contact-form * {
    background-image: none !important;
}

/* Ensure white background on all form elements */
#express-entry-basic-contact-form,
#express-entry-crs-contact-form,
#express-entry-basic-contact-form .ee-form-container,
#express-entry-crs-contact-form .ee-form-container,
#express-entry-basic-contact-form .wpcf7-form,
#express-entry-crs-contact-form .wpcf7-form {
    background-color: white !important;
    background-image: none !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .ee-calculator-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .ee-calculator-header {
        padding: 30px 15px;
    }
    
    .ee-calculator-header h1 {
        font-size: 2rem;
    }
    
    .ee-calculator-form {
        padding: 25px;
    }
    
    .ee-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ee-form-group.half-width {
        flex: 1;
    }
    
    .ee-score-container {
        position: static;
        margin: 20px auto;
        width: fit-content;
    }
    
    .ee-phone-input {
        flex-direction: row;
        gap: 10px;
    }
    
    .ee-phone-input input:first-child {
        flex: 0 0 70px;
    }
    
    .ee-phone-input input:last-child {
        flex: 1;
    }
    
    .ee-result-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ee-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-width: 450px;
    }
    
    .ee-points-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ee-score-breakdown {
        gap: 10px;
    }

    .ee-score-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    #express-entry-contact-form {
        padding: 25px;
        margin: 20px auto;
        max-width: 95%;
    }

    .ee-form-container {
        max-width: 100%;
    }

    #express-entry-contact-form input[type="text"],
    #express-entry-contact-form input[type="email"],
    #express-entry-contact-form input[type="tel"],
    #express-entry-contact-form textarea {
        max-width: 100%;
        padding: 12px 15px;
    }

    .ee-score-display {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 2px solid #B22222;
        border-radius: 12px;
        padding: 25px;
        margin: 30px auto;
        text-align: center;
        max-width: 400px;
        overflow: hidden;
    }

    #express-entry-contact-form .form-row {
        margin-bottom: 15px;
    }

    #express-entry-contact-form .wpcf7-form-control-wrap {
        max-width: 100%;
    }

    .ee-points-table {
        font-size: 0.8rem;
    }

    .ee-points-table th,
    .ee-points-table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ee-calculator-header h1 {
        font-size: 1.7rem;
    }
    
    .ee-calculator-form {
        padding: 20px;
    }
    
    .ee-form-step h2 {
        font-size: 1.5rem;
    }
    
    .ee-score-circle {
        width: 100px;
        height: 100px;
    }
    
    .ee-score-number {
        font-size: 1.7rem;
    }
    
    .ee-result-number {
        font-size: 2.5rem;
    }

    .ee-score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px;
    }

    #express-entry-contact-form {
        padding: 20px;
    }

    .ee-form-container h3 {
        color: #B22222;
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
    }

    #express-entry-contact-form input[type="submit"],
    #express-entry-contact-form .btn-submit {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 200px;
        max-width: 95%;
    }

    .ee-score-display {
        padding: 15px 10px;
        margin: 15px auto;
        max-width: 95%;
    }

    .ee-score-display h4 {
        color: #B22222;
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 15px;
    }

    #ee-display-score {
        font-family: 'Arial', sans-serif;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    #ee-display-score div:first-child {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
}

.wpcf7-acceptance {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.wpcf7-acceptance input[type="checkbox"] {
    margin: 2px 0 0 0 !important;
    flex-shrink: 0 !important;
}

.wpcf7-acceptance label {
    flex: 1 !important;
    text-align: left !important;
}</style>
<!-- end Simple Custom CSS and JS -->
