Files
application-form-7/static/style.css
T
2025-12-27 16:34:31 +01:00

415 lines
6.1 KiB
CSS

/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
padding: 20px;
}
/* Container */
.container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Header */
header {
border-bottom: 3px solid #007bff;
padding-bottom: 20px;
margin-bottom: 30px;
}
header h1 {
color: #007bff;
font-size: 1.8em;
}
/* Page Introduction */
.page-intro {
margin-bottom: 30px;
}
.page-intro h2 {
color: #333;
font-size: 1.4em;
margin-bottom: 15px;
}
.page-intro p {
margin-bottom: 10px;
}
/* Messages (Flash Messages) */
.messages {
margin-bottom: 20px;
}
.message {
padding: 12px 15px;
margin-bottom: 10px;
border-radius: 4px;
border-left: 4px solid;
}
.message-success {
background-color: #d4edda;
border-color: #28a745;
color: #155724;
}
.message-error {
background-color: #f8d7da;
border-color: #dc3545;
color: #721c24;
}
.message-warning {
background-color: #fff3cd;
border-color: #ffc107;
color: #856404;
}
.message-info {
background-color: #d1ecf1;
border-color: #17a2b8;
color: #0c5460;
}
/* Forms */
.application-form {
margin-bottom: 30px;
}
.form-section {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #ddd;
}
.form-section:last-child {
border-bottom: none;
}
.form-section h3 {
color: #555;
font-size: 1.2em;
margin-bottom: 15px;
}
.form-group {
margin-bottom: 20px;
}
.form-row {
display: flex;
gap: 20px;
}
.form-row .form-group {
flex: 1;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
color: #555;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1em;
font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
.form-group small {
display: block;
margin-top: 5px;
color: #666;
font-size: 0.9em;
}
.char-count {
color: #666;
}
.required-note {
color: #666;
font-size: 0.9em;
margin-top: 20px;
}
/* Buttons */
.btn {
padding: 12px 24px;
border: none;
border-radius: 4px;
font-size: 1em;
cursor: pointer;
text-decoration: none;
display: inline-block;
transition: background-color 0.2s;
}
.btn:focus {
outline: 2px solid #007bff;
outline-offset: 2px;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #545b62;
}
.btn-danger {
background-color: #dc3545;
color: white;
}
.btn-danger:hover {
background-color: #c82333;
}
.btn-small {
padding: 6px 12px;
font-size: 0.9em;
}
.btn-large {
padding: 15px 30px;
font-size: 1.1em;
}
.form-actions {
margin-top: 30px;
}
/* File Upload */
.uploaded-files {
background-color: #f8f9fa;
padding: 20px;
border-radius: 4px;
margin-bottom: 30px;
}
.uploaded-files h3 {
color: #333;
font-size: 1.1em;
margin-bottom: 15px;
}
.file-list {
list-style: none;
}
.file-item {
padding: 10px;
background-color: white;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.file-name {
flex: 1;
font-weight: bold;
}
.file-size {
color: #666;
font-size: 0.9em;
}
.upload-section {
margin-bottom: 30px;
}
.upload-section h3 {
color: #333;
font-size: 1.1em;
margin-bottom: 15px;
}
.upload-form {
background-color: #f8f9fa;
padding: 20px;
border-radius: 4px;
}
/* Submit Section */
.submit-section {
background-color: #fff3cd;
padding: 20px;
border-radius: 4px;
border: 1px solid #ffc107;
margin-top: 30px;
}
.submit-section h3 {
color: #333;
font-size: 1.1em;
margin-bottom: 15px;
}
.important-note {
color: #856404;
margin-bottom: 20px;
font-weight: bold;
}
/* Confirmation Page */
.confirmation-page {
text-align: left;
}
.success-message {
background-color: #d4edda;
border: 1px solid #28a745;
border-radius: 4px;
padding: 20px;
margin-bottom: 30px;
}
.success-message h2 {
color: #155724;
margin-bottom: 10px;
}
.success-message p {
color: #155724;
}
.confirmation-details {
margin-bottom: 30px;
}
.confirmation-details h3 {
color: #333;
font-size: 1.2em;
margin-bottom: 10px;
margin-top: 20px;
}
.confirmation-details ul {
margin-left: 20px;
margin-bottom: 15px;
}
.confirmation-details li {
margin-bottom: 8px;
}
.contact-info {
background-color: #f8f9fa;
padding: 20px;
border-radius: 4px;
margin-bottom: 20px;
}
.contact-info h3 {
color: #333;
font-size: 1.1em;
margin-bottom: 10px;
}
.info-message {
background-color: #d1ecf1;
border: 1px solid #17a2b8;
color: #0c5460;
padding: 15px;
border-radius: 4px;
margin: 20px 0;
}
/* Footer */
footer {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #ddd;
text-align: center;
color: #666;
font-size: 0.9em;
}
/* Accessibility */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
/* Responsive Design */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 20px;
}
.form-row {
flex-direction: column;
gap: 0;
}
header h1 {
font-size: 1.4em;
}
.page-intro h2 {
font-size: 1.2em;
}
}