/* Form Container */
.ecp-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.ecp-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Form Fields */
.ecp-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ecp-form-field {
    flex-basis: calc(100% - 15px);
}

.ecp-form-field[style*="width: 50"] {
    flex-basis: calc(50% - 7.5px);
}

.ecp-form-field[style*="width: 33"] {
    flex-basis: calc(33.333% - 10px);
}

.ecp-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ecp-required {
    color: #dc3232;
}

.ecp-field-input,
.ecp-field-textarea,
.ecp-field-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ecp-field-input:focus,
.ecp-field-textarea:focus,
.ecp-field-select:focus {
    outline: none;
    border-color: #2271b1;
}

.ecp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ecp-field-checkbox {
    width: auto;
    margin: 0;
}

/* Submit Button */
.ecp-form-submit {
    margin-top: 20px;
}

.ecp-submit-button {
    width: 100%;
    padding: 14px 28px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ecp-submit-button:hover {
    background: #135e96;
}

.ecp-submit-button:disabled {
    background: #ddd;
    cursor: not-allowed;
}

/* Messages */
.ecp-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
}

.ecp-form-message.ecp-success {
    background: #d5f4e6;
    color: #0d6832;
    border: 1px solid #68de7c;
}

.ecp-form-message.ecp-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Loading State */
.ecp-form.ecp-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ecp-form.ecp-loading .ecp-submit-button:after {
    content: '...';
    animation: ecp-dots 1.5s infinite;
}

@keyframes ecp-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Responsive */
@media (max-width: 600px) {
    .ecp-form {
        padding: 20px;
    }
    
    .ecp-form-field[style*="width: 50"],
    .ecp-form-field[style*="width: 33"] {
        flex-basis: 100%;
    }
}
