/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f7fafc;
}

/* Form Wrapper */
.ef-form-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Image */
.ef-header-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.ef-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Progress Steps */
.ef-progress-steps {
    display: flex;
    justify-content: flex-start;
    padding: 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #0020F2 #f8fafc;
}

.ef-step {
    flex: 0 0 auto;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.ef-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.ef-step.active .ef-step-number {
    background: #0020F2;
    color: white;
}

.ef-step-number {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.ef-step-label {
    font-size: 0.875rem;
    text-align: center;
    color: #4a5568;
    white-space: nowrap;
}

/* Form Content */
.ef-form {
    padding: 2rem;
}

.ef-section-header {
    margin-bottom: 2rem;
}

.ef-section-header h2 {
    font-size: 1.5rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.ef-section-header p {
    color: #718096;
}

.ef-section-subheader {
    margin: 2rem 0 1rem;
}

.ef-section-subheader h3 {
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 600;
}

/* Form Layout */
.ef-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ef-form-group {
    margin-bottom: 1.5rem;
}

.ef-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

/* Form Controls */
.ef-form-group input:not([type="checkbox"]):not([type="radio"]),
.ef-form-group select,
.ef-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.ef-form-group input:focus,
.ef-form-group select:focus,
.ef-form-group textarea:focus {
    border-color: #0020F2;
    box-shadow: 0 0 0 3px rgba(0, 32, 242, 0.1);
    outline: none;
}

/* Phone Input */
.ef-phone-input {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.ef-phone-prefix {
    background: #f7fafc;
    padding: 0.75rem;
    color: #4a5568;
    border-right: 1px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.ef-phone-input input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* Radio Button Styling */
.ef-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.ef-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
    border: 1px solid #e2e8f0;
    background-color: #f9f9f9;
    margin-bottom: 0;
    font-weight: normal;
}

.ef-radio-group label:hover {
    background-color: #f0f0f0;
}

.ef-radio-group input[type="radio"] {
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #a0aec0;
    border-radius: 50%;
    outline: none;
    position: relative;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.ef-radio-group input[type="radio"]:checked {
    border-color: #0020F2;
}

.ef-radio-group input[type="radio"]:checked:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #0020F2;
}

.ef-radio-group input[type="radio"]:focus {
    box-shadow: 0 0 0 2px rgba(0, 32, 242, 0.2);
}

/* Container for radio sections */
.ef-form-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 6px;
    background-color: #f9f9f9;
    border: 1px solid #e6e6e6;
}

.ef-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.ef-disclaimer {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 15px;
}

/* Services Grid */
.ef-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.ef-service-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    transition: all 0.3s ease;
}

.ef-service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ef-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: 2;
    transition: all 0.3s ease;
}

.ef-service-content {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ef-service-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 20px;
    height: 20px;
    z-index: 4;
    cursor: pointer;
}

.ef-service-icon {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.ef-service-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ef-service-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.ef-service-card.selected {
    border-color: #0020F2;
}

.ef-service-card.selected .ef-service-overlay {
    background: linear-gradient(rgba(0, 32, 242, 0.7), rgba(0, 32, 242, 0.9));
}

.ef-service-card:hover {
    transform: translateY(-2px);
    border-color: #0020F2;
}

.ef-service-card:hover .ef-service-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
}

/* Navigation Buttons */
.ef-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.ef-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ef-btn-prev {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.ef-btn-next,
.ef-btn-submit {
    background: #0020F2;
    color: white;
    border: none;
}

.ef-btn:hover {
    transform: translateY(-1px);
}

.ef-btn-next:hover,
.ef-btn-submit:hover {
    background: #001bd9;
}

/* Error States */
.ef-form-group input.error,
.ef-form-group select.error {
    border-color: #e53e3e;
    background-color: #fff5f5;
}

.ef-error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.ef-success-message {
    background-color: #f0fff4;
    color: #2f855a;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Loading State */
.ef-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.ef-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px;
    border: 2px solid #0020F2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ef-spin 0.8s linear infinite;
}

.ef-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.ef-success-message {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.ef-success-message h3 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
}
.ef-success-message p {
    margin: 0;
    color: #7f8c8d;
}
.ef-success-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #95a5a6;
}
.ef-success-close:hover {
    color: #34495e;
}

@keyframes ef-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .ef-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ef-form-wrapper {
        margin: 1rem;
        border-radius: 8px;
    }

    .ef-header-image {
        height: 200px;
    }

    .ef-progress-steps {
        padding: 1rem;
    }

    .ef-form {
        padding: 1rem;
    }

    .ef-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ef-services-grid {
        grid-template-columns: 1fr;
    }

    .ef-service-card {
        height: 200px;
    }
}