@import url('https://fonts.googleapis.com/css2?family=Avenir:wght@400;700&display=swap');

.csf-container,
.csf-subtitle,
.csf-font-type-header,
.csf-font-type-p,
.csf-button-cta,
.csf-left-section h1,
.csf-left-section h2,
.csf-left-section strong,
.csf-right-section,
.csf-right-section h4,
.csf-form-container,
.csf-form-container h2,
.csf-form-group h2,
.csf-form-group input,
.csf-form-group select,
.csf-form-group label,
.csf-popup h2,
.csf-popup p,
.csf-submit-btn {
    font-family: 'Segoe UI', Arial, sans-serif; /* Fallback to Arial and sans-serif */
	color: black;
}

.csf-font-type-header {
	font-size: 36px;
	font-weight: bold;
}

.csf-button-cta {
	font-size: 20px !important;
	color: #ffff !important;
	background-color: #0d79dd !important;
	border-radius: 10px !important;
	padding: .3em 1em !important;
	border: 0px !important;
}

.csf-button-cta:hover {
	background-color: #0b5cbf !important;
}

.csf-font-type-p {
	font-size: 14px;
	color: #555555;
}

.csf-form-step h2 {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
	line-height: 1.5;
	text-align: center;
}

.csf-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.csf-left-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.csf-row-content {
    display: flex; /* Use flexbox to arrange items in a row */
    flex-direction: row; /* Align items in a row */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space items evenly */
    flex-wrap: wrap; /* Allow items to wrap to the next line if needed */
}

.csf-left-section h1 {
    color: black; /* Highlighted color for important text */
    font-weight: bold; /* Bold font weight for emphasis */
	font-size: 22px;
	line-height: 1.2;
    margin: 0;
}

.csf-left-section h2 {
    font-size: 24px; /* Font size for the subheading */
    font-weight: 700; /* Bold font weight */
    color: #333; /* Dark color for the subheading */
    margin-top: 15px; /* Space above the subheading */
    margin-bottom: 10px; /* Space below the subheading */
}

.csf-left-section p {
    font-size: 16px; /* Font size for paragraphs */
    color: #555; /* Slightly lighter color for text */
    line-height: 1.6; /* Improve line height for readability */
    margin-bottom: 10px; /* Space below each paragraph */
}

.csf-left-section strong {
    color: black; /* Highlighted color for important text */
    font-weight: bold; /* Bold font weight for emphasis */
	font-size: 36px;
	line-height: 1.2;
}

.csf-right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.csf-right-section h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
}

.csf-form-container {
    width: 100%;
    max-width: 400px;
    background-color: transparent;
    padding: 20px;
    border-radius: 8px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

/* Full-screen form step styling */
.csf-form-step.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
	max-height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Optional: Add a semi-transparent background overlay */
.csf-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    z-index: 999;
    display: none; /* Hidden by default */
}

/* Show the overlay and popup when active */
.csf-popup-overlay.active,
.csf-form-step.fullscreen.active {
    display: block;
}

/* Hide navigation bar or menu */
.nav-bar, .menu {
    display: none !important;
}

.csf-form-step {
    margin: 0px 0;
}

.csf-form-group {
    margin-bottom: 20px;
    position: relative;
}

.csf-form-group input {
    width: 100%;
    padding: 20px 10px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s ease;
    height: 50px;
}

.csf-form-group input.csf-success {
    border-color: green; /* Green border for valid input */
}

.csf-form-group input.csf-error {
    border-color: red; /* Red border for invalid input */
}

.csf-form-group input[type="text"] {
    padding: 10px;
}

.csf-form-group input[type="text"]::placeholder {
	font-size: 12px !important;    
	text-align: right;
}

.csf-form-group input[type="email"] {
    padding: 10px;
}

.csf-form-group input[type="email"]::placeholder {
	font-size: 12px !important;    
	text-align: right;
}

.csf-form-group select {
    width: 100%;
    padding: 20px 10px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    height: 50px;
}

.csf-form-group input:focus,
.csf-form-group select:focus,
.csf-form-group input[type="text"]:focus,
.csf-form-group input[type="email"]:focus {
    border: 2px solid #1890ff; /* Blue border for focused input */
}

.csf-form-group .csf-error,
.csf-form-group select.csf-error {
    border: 2px solid #ff4d4f;
}

.csf-form-group .csf-success,
.csf-form-group select.csf-success {
    border: 2px solid green;
}

.csf-form-group .csf-error-message,
.csf-form-group .csf-success-message {
    display: none; /* Hide by default */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.csf-form-group input:valid + .csf-success-message {
    display: block; /* Show when input is valid */
}

.csf-form-group label {
    position: absolute;
    display: block !important;
    top: 14px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-size: 14px;
    color: #000;
    transition: all 0.2s ease;
    z-index: 1;
}

.csf-form-group input:focus + label,
.csf-form-group input:not(:placeholder-shown) + label,
.csf-form-group select:focus + label,
.csf-form-group select:not(:placeholder-shown) + label {
    display: block !important;
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #000;
    z-index: 1;
}

.csf-next-btn, .csf-prev-btn, .csf-submit-btn {
    width: 100%;
	margin-top: 15px;
    padding: 15px;
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.csf-next-btn:hover, .csf-prev-btn:hover, .csf-submit-btn:hover {
    background-color: #40a9ff;
}

.csf-submit-btn:disabled,
.csf-next-btn:disabled {
    background-color: #0056b3; /* Darker background color when disabled */
    color: #fff; /* Keep text color white */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    opacity: 0.9; /* Slightly transparent to indicate disabled state */
}

.csf-checkbox-group {
    display: flex;
    flex-direction: column;
	margin-top: 20px !important;
}

.csf-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.csf-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
    position: relative;
}

.csf-success-icon {
    display: none;
    width: 20px; /* Set the width of the icons */
    height: 20px; /* Set the height of the icons */
    position: absolute; /* Position the icons absolutely */
    right: 10px; /* Align to the right */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
}


.csf-checkbox-item label {
	padding: 10px !important;
}

.csf-checkbox-item:hover {
    border: 2px solid #1890ff;
}

.csf-checkbox-item label {
    display: block; /* Ensure the label is always displayed */
}


/*for dropdown*/
.csf-form-group select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.csf-form-group select:focus {
    border-color: #1890ff;
    outline: none;
}

/* Style for the upload field container */
.csf-form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
}

.csf-form-group input[type="file"]:focus {
    border-color: #1890ff;
    outline: none;
    background-color: #fff;
}

/* Style for the label above the upload field *

/* Style for the small description text below the upload field */
.csf-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.csf-dropzone {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 24px;
    width: 350px;
    margin: 0 auto 24px auto;
}
.csf-dropzone-area {
    border: 2px dashed #b3c6e0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 16px;
    position: relative;
}
.csf-add-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}
.csf-file-row {
    margin-bottom: 16px;
}
.csf-file-row-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.csf-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}
.csf-file-name {
    flex: 1;
    font-size: 15px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csf-file-size {
    font-size: 13px;
    color: #888;
    margin-left: 8px;
}
.remove-photo-btn {
    margin-left: 8px;
}
.csf-progress-bar {
    width: 100%;
    height: 6px; /* slightly thicker for modern look */
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.csf-progress-bar-inner {
    height: 100%;
    background: #3bff82;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s;
}
.remove-photo-btn {
    margin-left: 12px;
    background: #f44336;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}
.csf-dropzone.dragover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

/* Modern remove button for file row */
.remove-photo-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: box-shadow 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.remove-photo-btn:hover,
.remove-photo-btn:focus {
    box-shadow: 0 2px 8px rgba(244,67,54,0.18);
    background: #ffeaea;
}
.remove-photo-btn svg {
    display: block;
}

/* Loader styles */
#full-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.loader-content {
    position: relative;
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid white;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

#loader-message {
    font-size: 14px; /* Adjust font size for mobile */
    margin-top: 10px;
}

/* Popup styles */
.csf-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
}

#csfloader, #csfpopup {
  z-index: 9999 !important;
}

.csf-popup-content {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.csf-popup h2 {
    margin: 0 0 20px; /* Space below the title */
    font-size: 24px; /* Larger font size for the title */
    color: #333; /* Darker color for the title */
}

.csf-popup p {
    margin: 0 0 20px; /* Space below the paragraph */
    font-size: 16px; /* Font size for the message */
    color: #555; /* Slightly lighter color for the message */
}

.no-scroll {
    overflow: hidden; /* Prevent scrolling */
    height: 100%; /* Ensure the body takes full height */
}

@media (min-width: 768px) {
    .csf-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px; /* Optional: Add padding for spacing */
        box-sizing: border-box; /* Ensure padding doesn't affect width */
        max-width: 100%;
    }

    .csf-form-container {
        border-radius: 8px; /* Optional: Add rounded corners */
        padding: 20px; /* Add padding inside the form */
        width: 100%; /* Ensure it doesn't exceed the container width */
    }

    .csf-dropzone {
        width: 100%; /* Ensure the dropzone takes full width */
        margin: 0 auto; /* Center the dropzone */
    }

    .csf-left-section {
        margin-bottom: 0;
    }

    .csf-form-step.fullscreen {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        height: 95%;
        border-radius: 8px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    }

    /* Blur background effect */
    .csf-blur-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
        backdrop-filter: blur(8px); /* Apply blur effect */
        z-index: 999; /* Ensure it appears above other elements */
        display: none; /* Initially hidden */
    }

    /* Ensure the form container is above the blur background */
    .csf-container {
        position: relative;
        z-index: 1000;
    }

    /* Show the close button when the form is open */
    .csf-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
        z-index: 10;
    }

    .csf-close-btn:hover {
        color: #f44336;
    }

    .csf-close-btn i {
        font-size: 24px;
    }
	
	.csf-add-btn
    {
        display: none; 
    }

}

/* Hide input placeholders on mobile devices */
@media (max-width: 768px) {
    input::placeholder {
        color: transparent; /* Make the placeholder text transparent */
    }
	
	.csf-container {
		width: 100%;
		margin-top: 40px;
		padding: 10px;
	}

    .csf-dropzone {
        width: 100%;    
    }	
	
    .csf-add-btn
    {
        display: none; /* Hide the add button on mobile */
    }

    /* Adjust CAPTCHA size for mobile devices
    .g-recaptcha {
        transform: scale(1);
        transform-origin: left; 
    }

    .g-recaptcha iframe {
        max-width: 100%; 
    }*/
    
    /* Show the close button when the form is open */
    .csf-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: transparent;
        border: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
        z-index: 10;
    }

    .csf-close-btn:hover {
        color: #f44336;
    }

    .csf-close-btn i {
        font-size: 24px;
    }

    .csf-error-message {
        display: block; /* Ensure the error message is displayed */
        margin-top: 35px; /* Add some space above the error message */
        font-size: 12px !important; /* Adjust font size for better readability */
        color: red; /* Set the color for error messages */
    }
    
}