.caf-wrapper {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
color: #333;
line-height: 1.6;
}
.caf-wrapper * {
box-sizing: border-box;
} .caf-wrapper h1 {
font-size: 2em;
color: #2c3e50;
margin-bottom: 1.5em;
text-align: center;
border-bottom: 2px solid #eee;
padding-bottom: 0.5em;
} .caf-section {
background: #ffffff;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 2em;
padding: 2em;
transition: box-shadow 0.3s ease;
}
.caf-section:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
} .caf-section h2 {
color: #2c3e50;
font-size: 1.5em;
margin: 0 0 1em;
padding-bottom: 0.5em;
border-bottom: 2px solid #e9ecef;
}
.caf-section h3 {
color: #34495e;
font-size: 1.2em;
margin: 1.5em 0 1em;
} .caf-label {
display: block;
margin-bottom: 0.8em;
color: #4a5568;
font-size: 0.95em;
transition: color 0.2s ease;
}
.caf-label:hover {
color: #2c3e50;
} .caf-input {
width: 100%;
padding: 0.8em;
border: 1px solid #cbd5e0;
border-radius: 4px;
font-size: 0.95em;
transition: all 0.2s ease;
background-color: #fff;
}
.caf-input:focus {
outline: none;
border-color: #4299e1;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
} .caf-checkbox,
.caf-radio {
margin-right: 0.5em;
cursor: pointer;
}
.caf-checkbox:checked,
.caf-radio:checked {
accent-color: #4299e1;
} .caf-input[required] {
border-left: 3px solid #4299e1;
} .caf-button-container {
margin-top: 2em;
text-align: right;
display: flex;
justify-content: flex-end;
gap: 1em;
}
.caf-button {
padding: 0.8em 1.6em;
border: none;
border-radius: 4px;
font-weight: 600;
font-size: 0.95em;
cursor: pointer;
transition: all 0.2s ease;
}
.caf-button--submit {
background-color: #4299e1;
color: white;
}
.caf-button--submit:hover:not(:disabled) {
background-color: #3182ce;
}
.caf-button--submit:disabled {
background-color: #a0aec0;
cursor: not-allowed;
}
.caf-button--reset {
background-color: #edf2f7;
color: #4a5568;
}
.caf-button--reset:hover {
background-color: #e2e8f0;
color: #2d3748;
} .caf-section:last-of-type {
background-color: #f8fafc;
border: 1px solid #e2e8f0;
} @media (max-width: 768px) {
.caf-wrapper {
padding: 10px;
}
.caf-section {
padding: 1.5em;
}
.caf-button-container {
flex-direction: column;
gap: 0.5em;
}
.caf-button {
width: 100%;
}
} .caf-input:invalid {
border-color: #fc8181;
}
.caf-input:invalid:focus {
box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.15);
} .caf-input:valid {
border-color: #68d391;
} .caf-form-group {
margin-bottom: 1.5em;
} .caf-helper-text {
font-size: 0.85em;
color: #718096;
margin-top: 0.3em;
} .caf-button--submit.loading {
position: relative;
color: transparent;
}
.caf-button--submit.loading::after {
content: "";
position: absolute;
width: 1em;
height: 1em;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 2px solid #fff;
border-radius: 50%;
border-right-color: transparent;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: translate(-50%, -50%) rotate(360deg);
}
}