/* Error State Styling */
.cfp-form-control.cfp-error {
    border-color: #ff3860;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.1rem rgba(255, 56, 96, 0.1);
    transition: all 0.3s ease;
}

.cfp-error-message {
    color: #ff3860;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #fff5f5;
    border-radius: 0.25rem;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

/* Success State Styling */
.cfp-form-control.cfp-success {
    border-color: #23d160;
    background-color: #f5fffa;
}

/* Alert Messages */
.cfp-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
}

.cfp-success {
    background-color: #effaf3;
    color: #257942;
    border: 1px solid #d2f0da;
}

.cfp-error {
    background-color: #ffebee;
    color: #cc0f35;
    border: 1px solid #ffcdd2;
}

/* Form Elements */
.cfp-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cfp-form-group {
    margin-bottom: 1.5rem;
}

.cfp-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cfp-form-control:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 0.1rem rgba(66, 153, 225, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

/* Button Styling */
.cfp-submit-btn {
    background: #7f19e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.cfp-submit-btn:hover {
    background: white;
    transform: translateY(-1px);
    border: 2px solid #7f19e5;
    color: #7f19e5;
    -webkit-transition: all 2500ms ease;
    -moz-transition: all 2500ms ease;
    -ms-transition: all 2500ms ease;
    -o-transition: all 2500ms ease;
    transition: all 2500ms ease;
}

.star {
    color: red;
    font-weight: bold;
}

.cfp-submit-btn:active {
    transform: translateY(0);
}

.cfp-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: cfp-spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes cfp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .cfp-contact-form {
        padding: 1.5rem;
    }

    .cfp-form-control {
        padding: 0.625rem 0.875rem;
    }
}

/* Add these to add animation */
.cfp-form-control {
    transition: all 0.3s ease;
}

.cfp-error-message {
    transition: all 0.3s ease;
    overflow: hidden;
}

.cfp-error-message.show {
    max-height: 100px;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
}

/* Update the error message display in JavaScript to use .show class */
