/* ============================================================
   Celestia Pro Form — Frontend Styles
   ============================================================ */

.cpf-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cpf-form {
    background: #fff;
    border: 1px solid #e8e0f5;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 30px rgba(108, 63, 197, 0.08);
}

/* Field Wrapper */
.cpf-field-wrap {
    margin-bottom: 20px;
}

.cpf-field-wrap label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 7px;
}

.cpf-req {
    color: #e74c3c;
    margin-left: 2px;
}

/* Inputs */
.cpf-input,
.cpf-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.cpf-input:focus,
.cpf-select:focus {
    border-color: #6C3FC5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.12);
}

.cpf-input::placeholder {
    color: #bbb;
}

/* Textarea — visually bigger than other fields */
.cpf-type-textarea .cpf-textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.cpf-type-textarea .cpf-textarea:focus {
    border-color: #6C3FC5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.12);
}

.cpf-type-textarea .cpf-textarea::placeholder {
    color: #bbb;
}

/* Checkbox & Radio */
.cpf-checkbox-label,
.cpf-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 15px;
}

.cpf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpf-checkbox-label input,
.cpf-radio-group input {
    accent-color: #6C3FC5;
    width: 16px;
    height: 16px;
}

/* Submit Button */
.cpf-submit-wrap {
    margin-top: 8px;
}

.cpf-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6C3FC5 0%, #9B5DE5 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s, transform 0.1s;
}

.cpf-submit-btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.cpf-submit-btn:active { transform: translateY(0); }
.cpf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Messages */
.cpf-msg {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}
.cpf-msg-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.cpf-msg-error   { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* Field error highlight */
.cpf-input.cpf-error,
.cpf-textarea.cpf-error { border-color: #e74c3c; background: #fff8f7; }

/* Responsive */
@media (max-width: 520px) {
    .cpf-form { padding: 24px 20px; }
}
