535 lines
8.8 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 40px;
padding: 40px 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header h1 {
color: #005a9c;
margin-bottom: 10px;
font-size: 2.5em;
}
header p {
color: #666;
font-size: 1.1em;
}
/* Buttons */
.btn {
display: inline-block;
padding: 10px 16px;
margin: 2px;
font-size: 14px;
font-weight: 500;
line-height: 1.5;
text-align: center;
text-decoration: none;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
border: 1px solid transparent;
border-radius: 4px;
transition: all 0.2s ease-in-out;
user-select: none;
}
.btn:hover {
text-decoration: none;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn:active {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn-primary {
color: white;
background-color: #005a9c;
border-color: #005a9c;
}
.btn-primary:hover {
background-color: #004a7c;
border-color: #004a7c;
}
.btn-secondary {
color: #005a9c;
background-color: white;
border-color: #005a9c;
}
.btn-secondary:hover {
color: white;
background-color: #005a9c;
border-color: #005a9c;
}
.btn-success {
color: white;
background-color: #28a745;
border-color: #28a745;
}
.btn-success:hover {
background-color: #218838;
border-color: #1e7e34;
}
.text-muted {
color: #6c757d;
font-style: italic;
}
/* Forms */
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 600;
color: #555;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #005a9c;
box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.1);
}
.input-group {
display: flex;
gap: 10px;
align-items: flex-start;
}
.input-group input {
flex: 1;
}
#postal-form {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
max-width: 600px;
margin: 0 auto;
}
/* Buttons */
.btn {
padding: 12px 24px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
}
.btn-primary {
background-color: #005a9c;
color: white;
}
.btn-primary:hover {
background-color: #004a7c;
transform: translateY(-1px);
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #5a6268;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
}
/* Loading Spinner */
.loading {
text-align: center;
padding: 40px;
}
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #005a9c;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Error Messages */
.error-message {
background-color: #f8d7da;
color: #721c24;
padding: 15px;
border-radius: 4px;
margin: 20px 0;
border: 1px solid #f5c6cb;
}
/* Success Messages */
.success-message {
background-color: #d4edda;
color: #155724;
padding: 15px;
border-radius: 4px;
margin: 20px 0;
border: 1px solid #c3e6cb;
}
/* Representatives Section */
#representatives-section {
margin-top: 40px;
}
.location-info {
background: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.location-info h3 {
color: #005a9c;
margin-bottom: 10px;
}
.rep-category {
margin-bottom: 40px;
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.rep-category h3 {
color: #005a9c;
margin: 0 0 20px 0;
padding-bottom: 10px;
border-bottom: 2px solid #e9ecef;
}
.rep-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.rep-card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
background: #fafafa;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
gap: 20px;
align-items: flex-start;
}
.rep-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.rep-photo {
flex-shrink: 0;
width: 80px;
height: 80px;
position: relative;
}
.rep-photo img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
border: 2px solid #005a9c;
}
.rep-photo-fallback {
width: 100%;
height: 100%;
border-radius: 50%;
background: linear-gradient(135deg, #005a9c, #007acc);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.2em;
border: 2px solid #005a9c;
}
.rep-content {
flex: 1;
min-width: 0;
}
.rep-card h4 {
color: #005a9c;
margin-bottom: 10px;
font-size: 1.2em;
}
.rep-card .rep-info {
margin-bottom: 15px;
}
.rep-card .rep-info p {
margin: 5px 0;
color: #666;
}
.rep-card .rep-info strong {
color: #333;
}
.rep-card .rep-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.call-representative {
display: inline-flex;
align-items: center;
gap: 6px;
}
.call-representative:hover {
background-color: #218838;
border-color: #1e7e34;
}
/* Modal Styles */
.modal {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: white;
border-radius: 8px;
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid #ddd;
}
.modal-header h3 {
color: #005a9c;
margin: 0;
}
.close-btn {
font-size: 28px;
font-weight: bold;
cursor: pointer;
color: #999;
transition: color 0.3s ease;
}
.close-btn:hover {
color: #333;
}
.modal-body {
padding: 20px;
}
.recipient-info {
background-color: #f8f9fa;
padding: 10px;
border-radius: 4px;
margin-bottom: 10px;
border-left: 4px solid #005a9c;
}
.form-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 20px;
}
.char-counter {
color: #666;
font-size: 0.9em;
text-align: right;
display: block;
margin-top: 5px;
}
/* Message Display */
.message-display {
position: fixed;
top: 20px;
right: 20px;
max-width: 400px;
padding: 15px;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 1001;
}
.message-display.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.message-display.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Footer */
footer {
margin-top: 60px;
text-align: center;
padding: 30px 20px;
color: #666;
border-top: 1px solid #ddd;
}
footer a {
color: #005a9c;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 10px;
}
header h1 {
font-size: 2em;
}
.input-group {
flex-direction: column;
}
.rep-cards {
grid-template-columns: 1fr;
}
.form-actions {
flex-direction: column-reverse;
}
.modal-content {
width: 95%;
margin: 10px;
}
.message-display {
left: 10px;
right: 10px;
max-width: none;
}
}
@media (max-width: 480px) {
.rep-card {
flex-direction: column;
align-items: center;
text-align: center;
gap: 15px;
}
.rep-photo {
width: 100px;
height: 100px;
}
.rep-card .rep-actions {
flex-direction: column;
width: 100%;
}
.btn {
width: 100%;
text-align: center;
}
}