/* Main Form Container */
.cfp-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cfp-form-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.cfp-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.cfp-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cfp-form-description {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Form Elements */
.cfp-form {
    position: relative;
    z-index: 1;
}

.cfp-form-group {
    margin-bottom: 25px;
}

.cfp-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.cfp-required {
    color: #ff6b6b;
}

.cfp-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
}

.cfp-input:focus {
    outline: none;
    border-color: #fff;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cfp-input::placeholder {
    color: #666;
    opacity: 0.7;
}

/* Submit Button */
.cfp-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cfp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.cfp-submit-btn:active {
    transform: translateY(-1px);
}

.cfp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner Animation */
.cfp-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.cfp-spinner-svg {
    animation: cfp-rotate 1s linear infinite;
    width: 100%;
    height: 100%;
}

.cfp-spinner-circle {
    stroke: white;
    stroke-linecap: round;
    animation: cfp-dash 1.5s ease-in-out infinite;
}

@keyframes cfp-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes cfp-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Messages */
#cfp-message-container {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cfp-message-success {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.cfp-message-error {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.cfp-error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 600;
    min-height: 20px;
}

/* Form Footer */
.cfp-form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 1;
}

.cfp-footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cfp-form-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .cfp-form-wrapper {
        padding: 25px;
    }
    
    .cfp-form-title {
        font-size: 2rem;
    }
    
    .cfp-input {
        padding: 12px 15px;
    }
    
    .cfp-submit-btn {
        padding: 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cfp-form-wrapper {
        padding: 20px;
    }
    
    .cfp-form-title {
        font-size: 1.8rem;
    }
    
    .cfp-form-description {
        font-size: 1rem;
    }
}