2428 lines
44 KiB
CSS
2428 lines
44 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: 60px 20px;
|
|
background: linear-gradient(135deg, #005a9c 0%, #007acc 50%, #0099ff 100%);
|
|
background-size: 200% 200%;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 24px rgba(0, 90, 156, 0.2);
|
|
position: relative;
|
|
overflow: hidden;
|
|
animation: gradientShift 15s ease infinite;
|
|
}
|
|
|
|
@keyframes gradientShift {
|
|
0% { background-position: 0% 50%; }
|
|
50% { background-position: 100% 50%; }
|
|
100% { background-position: 0% 50%; }
|
|
}
|
|
|
|
.header-background {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.gradient-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
|
|
animation: overlayPulse 8s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes overlayPulse {
|
|
0%, 100% { opacity: 0.3; }
|
|
50% { opacity: 0.6; }
|
|
}
|
|
|
|
.particles {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.particle {
|
|
position: absolute;
|
|
font-size: 24px;
|
|
animation: float 20s infinite ease-in-out;
|
|
opacity: 0.4;
|
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
|
}
|
|
|
|
.particle:nth-child(1) {
|
|
left: 10%;
|
|
top: 20%;
|
|
animation-duration: 18s;
|
|
animation-delay: 0s;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.particle:nth-child(2) {
|
|
left: 80%;
|
|
top: 60%;
|
|
animation-duration: 22s;
|
|
animation-delay: 2s;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.particle:nth-child(3) {
|
|
left: 30%;
|
|
top: 70%;
|
|
animation-duration: 20s;
|
|
animation-delay: 4s;
|
|
font-size: 26px;
|
|
}
|
|
|
|
.particle:nth-child(4) {
|
|
left: 60%;
|
|
top: 30%;
|
|
animation-duration: 19s;
|
|
animation-delay: 1s;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.particle:nth-child(5) {
|
|
left: 90%;
|
|
top: 80%;
|
|
animation-duration: 21s;
|
|
animation-delay: 3s;
|
|
font-size: 25px;
|
|
}
|
|
|
|
.particle:nth-child(6) {
|
|
left: 50%;
|
|
top: 10%;
|
|
animation-duration: 17s;
|
|
animation-delay: 5s;
|
|
font-size: 23px;
|
|
}
|
|
|
|
.particle:nth-child(7) {
|
|
left: 15%;
|
|
top: 50%;
|
|
animation-duration: 23s;
|
|
animation-delay: 6s;
|
|
font-size: 27px;
|
|
}
|
|
|
|
.particle:nth-child(8) {
|
|
left: 75%;
|
|
top: 15%;
|
|
animation-duration: 19s;
|
|
animation-delay: 2.5s;
|
|
font-size: 24px;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% {
|
|
transform: translate(0, 0) scale(1) rotate(0deg);
|
|
opacity: 0.3;
|
|
}
|
|
25% {
|
|
transform: translate(30px, -30px) scale(1.2) rotate(15deg);
|
|
opacity: 0.5;
|
|
}
|
|
50% {
|
|
transform: translate(-20px, 20px) scale(0.9) rotate(-10deg);
|
|
opacity: 0.4;
|
|
}
|
|
75% {
|
|
transform: translate(20px, 30px) scale(1.1) rotate(20deg);
|
|
opacity: 0.45;
|
|
}
|
|
}
|
|
|
|
/* Unified Header Section */
|
|
.unified-header-section {
|
|
position: relative;
|
|
background: linear-gradient(135deg, #005a9c 0%, #007acc 50%, #0099ff 100%);
|
|
background-size: 200% 200%;
|
|
animation: gradientShift 15s ease infinite;
|
|
border-radius: 12px;
|
|
padding: 60px 20px 40px;
|
|
margin-bottom: 40px;
|
|
box-shadow: 0 8px 24px rgba(0, 90, 156, 0.2);
|
|
overflow: hidden;
|
|
text-align: center;
|
|
}
|
|
|
|
@keyframes gradientShift {
|
|
0% { background-position: 0% 50%; }
|
|
50% { background-position: 100% 50%; }
|
|
100% { background-position: 0% 50%; }
|
|
}
|
|
|
|
.section-background {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.gradient-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
|
|
animation: overlayPulse 8s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes overlayPulse {
|
|
0%, 100% { opacity: 0.3; }
|
|
50% { opacity: 0.6; }
|
|
}
|
|
|
|
.particles {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.particle {
|
|
position: absolute;
|
|
font-size: 24px;
|
|
animation: float 20s infinite ease-in-out;
|
|
opacity: 0.4;
|
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
|
}
|
|
|
|
.particle:nth-child(1) {
|
|
left: 10%;
|
|
top: 20%;
|
|
animation-duration: 18s;
|
|
animation-delay: 0s;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.particle:nth-child(2) {
|
|
left: 80%;
|
|
top: 60%;
|
|
animation-duration: 22s;
|
|
animation-delay: 2s;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.particle:nth-child(3) {
|
|
left: 30%;
|
|
top: 70%;
|
|
animation-duration: 20s;
|
|
animation-delay: 4s;
|
|
font-size: 26px;
|
|
}
|
|
|
|
.particle:nth-child(4) {
|
|
left: 60%;
|
|
top: 30%;
|
|
animation-duration: 19s;
|
|
animation-delay: 1s;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.particle:nth-child(5) {
|
|
left: 90%;
|
|
top: 80%;
|
|
animation-duration: 21s;
|
|
animation-delay: 3s;
|
|
font-size: 25px;
|
|
}
|
|
|
|
.particle:nth-child(6) {
|
|
left: 50%;
|
|
top: 10%;
|
|
animation-duration: 17s;
|
|
animation-delay: 5s;
|
|
font-size: 23px;
|
|
}
|
|
|
|
.particle:nth-child(7) {
|
|
left: 15%;
|
|
top: 50%;
|
|
animation-duration: 23s;
|
|
animation-delay: 6s;
|
|
font-size: 27px;
|
|
}
|
|
|
|
.particle:nth-child(8) {
|
|
left: 75%;
|
|
top: 15%;
|
|
animation-duration: 19s;
|
|
animation-delay: 2.5s;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.particle:nth-child(9) {
|
|
left: 40%;
|
|
top: 40%;
|
|
animation-duration: 20s;
|
|
animation-delay: 4s;
|
|
font-size: 26px;
|
|
}
|
|
|
|
.particle:nth-child(10) {
|
|
left: 65%;
|
|
top: 65%;
|
|
animation-duration: 18s;
|
|
animation-delay: 1.5s;
|
|
font-size: 25px;
|
|
}
|
|
|
|
@keyframes float {
|
|
0%, 100% {
|
|
transform: translate(0, 0) scale(1) rotate(0deg);
|
|
opacity: 0.3;
|
|
}
|
|
25% {
|
|
transform: translate(30px, -30px) scale(1.2) rotate(15deg);
|
|
opacity: 0.5;
|
|
}
|
|
50% {
|
|
transform: translate(-20px, 20px) scale(0.9) rotate(-10deg);
|
|
opacity: 0.4;
|
|
}
|
|
75% {
|
|
transform: translate(20px, 30px) scale(1.1) rotate(20deg);
|
|
opacity: 0.45;
|
|
}
|
|
}
|
|
|
|
.unified-header-section .header-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-bottom: 50px;
|
|
}
|
|
|
|
.unified-header-section .header-content h1 {
|
|
color: #ffffff;
|
|
margin-bottom: 10px;
|
|
font-size: 2.5em;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.unified-header-section .header-content p {
|
|
color: rgba(255, 255, 255, 0.95);
|
|
font-size: 1.1em;
|
|
text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.brand-link {
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
position: relative;
|
|
display: inline-block;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.brand-link::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 2px;
|
|
bottom: -2px;
|
|
left: 0;
|
|
background-color: rgba(255, 255, 255, 0.6);
|
|
transform: scaleX(0);
|
|
transform-origin: bottom right;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.brand-link:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.brand-link:hover::after {
|
|
transform: scaleX(1);
|
|
transform-origin: bottom left;
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeInUp 0.8s ease-out forwards;
|
|
opacity: 0;
|
|
}
|
|
|
|
.fade-in-delay {
|
|
animation: fadeInUp 0.8s ease-out 0.3s forwards;
|
|
opacity: 0;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.unified-header-section .map-header {
|
|
position: relative;
|
|
z-index: 1;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.unified-header-section .map-header h2 {
|
|
color: #ffffff;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
font-size: 2em;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.header-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
header h1 {
|
|
color: #ffffff;
|
|
margin-bottom: 10px;
|
|
font-size: 2.5em;
|
|
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
font-weight: 700;
|
|
}
|
|
|
|
header p {
|
|
color: rgba(255, 255, 255, 0.95);
|
|
font-size: 1.1em;
|
|
text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.brand-link {
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
position: relative;
|
|
display: inline-block;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.brand-link::after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 2px;
|
|
bottom: -2px;
|
|
left: 0;
|
|
background-color: rgba(255, 255, 255, 0.6);
|
|
transform: scaleX(0);
|
|
transform-origin: bottom right;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.brand-link:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.brand-link:hover::after {
|
|
transform: scaleX(1);
|
|
transform-origin: bottom left;
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeInUp 0.8s ease-out forwards;
|
|
opacity: 0;
|
|
}
|
|
|
|
.fade-in-delay {
|
|
animation: fadeInUp 0.8s ease-out 0.3s forwards;
|
|
opacity: 0;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 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);
|
|
/* Prevent width changes when inline composer is added */
|
|
position: relative;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Inline Email Composer Styles */
|
|
.inline-email-composer {
|
|
margin-top: 20px;
|
|
padding: 20px;
|
|
background: white;
|
|
border: 2px solid #005a9c;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
overflow: hidden;
|
|
max-height: 0;
|
|
opacity: 0;
|
|
transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease, padding 0.4s ease;
|
|
/* Ensure it's not affected by any parent grid/flex container */
|
|
width: 100% !important;
|
|
max-width: none !important;
|
|
min-width: 0 !important;
|
|
grid-column: 1 / -1; /* Span full width if inside a grid */
|
|
display: block !important;
|
|
box-sizing: border-box !important;
|
|
}
|
|
|
|
.inline-email-composer.active {
|
|
max-height: 2000px;
|
|
opacity: 1;
|
|
margin-top: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.inline-email-composer.closing {
|
|
max-height: 0;
|
|
opacity: 0;
|
|
margin-top: 0;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.inline-email-composer .composer-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #e9ecef;
|
|
}
|
|
|
|
.inline-email-composer .composer-header h3 {
|
|
color: #005a9c;
|
|
margin: 0;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.inline-email-composer .close-btn {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
color: #999;
|
|
transition: color 0.3s ease;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.inline-email-composer .close-btn:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.inline-email-composer .composer-body {
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateY(-20px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.inline-email-composer .email-preview-details {
|
|
background-color: #f8f9fa;
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
border: 1px solid #e9ecef;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.inline-email-composer .detail-row {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inline-email-composer .detail-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.inline-email-composer .detail-row strong {
|
|
color: #495057;
|
|
min-width: 90px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.inline-email-composer .detail-row span {
|
|
color: #333;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.inline-email-composer .email-preview-content {
|
|
background-color: white;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
padding: 20px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Wrapper for sanitized email HTML to prevent it affecting parent page */
|
|
.inline-email-composer .email-preview-body {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.inline-email-composer .email-preview-content p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.inline-email-composer .email-preview-content p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Ensure all inline composer child elements respect full width */
|
|
.inline-email-composer .composer-header,
|
|
.inline-email-composer .composer-body,
|
|
.inline-email-composer .recipient-info,
|
|
.inline-email-composer .inline-email-form,
|
|
.inline-email-composer .form-group,
|
|
.inline-email-composer .form-actions,
|
|
.inline-email-composer .email-preview-details,
|
|
.inline-email-composer .email-preview-content {
|
|
width: 100%;
|
|
max-width: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.inline-email-composer .form-group input,
|
|
.inline-email-composer .form-group textarea {
|
|
width: 100%;
|
|
max-width: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 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;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Email Preview Modal Styles */
|
|
.preview-modal {
|
|
max-width: 800px;
|
|
max-height: 95vh;
|
|
}
|
|
|
|
.preview-modal .modal-body {
|
|
max-height: calc(95vh - 120px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.preview-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.preview-section h4 {
|
|
color: #005a9c;
|
|
margin-bottom: 12px;
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.email-details {
|
|
background-color: #f8f9fa;
|
|
padding: 16px;
|
|
border-radius: 6px;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
.detail-row {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.detail-row strong {
|
|
color: #495057;
|
|
min-width: 60px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.detail-row span {
|
|
color: #333;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.email-preview-content {
|
|
background-color: white;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
padding: 20px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.email-preview-content p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.email-preview-content p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e9ecef;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.email-details {
|
|
background-color: #f8f9fa;
|
|
padding: 16px;
|
|
border-radius: 6px;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
.detail-row {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.detail-row strong {
|
|
min-width: 60px;
|
|
color: #495057;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.detail-row span {
|
|
color: #212529;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.email-preview-content {
|
|
background-color: #ffffff;
|
|
border-radius: 6px;
|
|
min-height: 200px;
|
|
max-height: 600px;
|
|
overflow: hidden;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Style for iframe email previews */
|
|
.email-preview-content iframe {
|
|
display: block;
|
|
width: 100%;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 6px;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
/* Style for text email previews */
|
|
.email-preview-content pre {
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #f8f9fa;
|
|
border-radius: 6px;
|
|
border: 1px solid #dee2e6;
|
|
white-space: pre-wrap;
|
|
font-family: inherit;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.email-preview-content img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.email-preview-content a {
|
|
color: #007bff;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
justify-content: flex-end;
|
|
margin-top: 24px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid #e9ecef;
|
|
}
|
|
|
|
.btn.btn-outline {
|
|
background-color: transparent;
|
|
border: 1px solid #6c757d;
|
|
color: #6c757d;
|
|
}
|
|
|
|
.btn.btn-outline:hover {
|
|
background-color: #6c757d;
|
|
color: white;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
.footer-actions {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.footer-actions .btn {
|
|
font-size: 12px;
|
|
padding: 6px 12px;
|
|
opacity: 0.8;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.footer-actions .btn:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
.rep-photo {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.rep-card .rep-actions {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.rep-card .rep-actions .btn {
|
|
font-size: 14px;
|
|
padding: 12px 20px;
|
|
width: 100%;
|
|
margin: 4px 0;
|
|
text-align: center;
|
|
justify-content: center;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
/* Map Styles */
|
|
.map-header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.map-header h2 {
|
|
color: #005a9c;
|
|
margin: 0;
|
|
}
|
|
|
|
.postal-input-section {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
margin-bottom: 20px;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.postal-input-section .form-group {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.postal-input-section .input-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.postal-input-section .input-group input {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.map-container {
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
#main-map {
|
|
height: 400px;
|
|
width: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Map message overlay */
|
|
.map-message {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 1000;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
color: white;
|
|
padding: 15px 25px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
max-width: 300px;
|
|
}
|
|
|
|
/* Office marker styles */
|
|
.office-marker {
|
|
background: none;
|
|
border: none;
|
|
}
|
|
|
|
.office-marker .marker-content {
|
|
background: white;
|
|
border: 3px solid #005a9c;
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.office-marker.federal .marker-content {
|
|
border-color: #d32f2f;
|
|
background: #ffebee;
|
|
}
|
|
|
|
.office-marker.provincial .marker-content {
|
|
border-color: #1976d2;
|
|
background: #e3f2fd;
|
|
}
|
|
|
|
.office-marker.municipal .marker-content {
|
|
border-color: #388e3c;
|
|
background: #e8f5e8;
|
|
}
|
|
|
|
.office-marker:hover .marker-content {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Office popup styles */
|
|
.leaflet-popup-content-wrapper {
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.office-popup-content {
|
|
font-family: inherit;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.office-popup-content .rep-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid #eee;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.office-popup-content .rep-header.federal {
|
|
border-bottom-color: #d32f2f;
|
|
}
|
|
|
|
.office-popup-content .rep-header.provincial {
|
|
border-bottom-color: #1976d2;
|
|
}
|
|
|
|
.office-popup-content .rep-header.municipal {
|
|
border-bottom-color: #388e3c;
|
|
}
|
|
|
|
.office-popup-content .rep-photo-small {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 2px solid #ddd;
|
|
}
|
|
|
|
.office-popup-content .rep-info h4 {
|
|
margin: 0 0 4px 0;
|
|
color: #333;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.office-popup-content .rep-level {
|
|
margin: 0 0 2px 0;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.office-popup-content .rep-header.federal .rep-level {
|
|
color: #d32f2f;
|
|
}
|
|
|
|
.office-popup-content .rep-header.provincial .rep-level {
|
|
color: #1976d2;
|
|
}
|
|
|
|
.office-popup-content .rep-header.municipal .rep-level {
|
|
color: #388e3c;
|
|
}
|
|
|
|
.office-popup-content .rep-district {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: #666;
|
|
}
|
|
|
|
.office-popup-content .office-details h5 {
|
|
margin: 0 0 8px 0;
|
|
color: #333;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.office-popup-content .office-details p {
|
|
margin: 0 0 6px 0;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.office-popup-content .office-details p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.office-popup-content .office-details a {
|
|
color: #005a9c;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.office-popup-content .office-details a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.office-popup-content .office-actions {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.office-popup-content .btn-small {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.office-popup-content .shared-location-note {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.office-popup-content .shared-location-note small {
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Visit office buttons */
|
|
.visit-office {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
margin: 3px;
|
|
font-size: 13px;
|
|
line-height: 1.3;
|
|
min-width: 120px;
|
|
max-width: 180px;
|
|
width: 180px;
|
|
text-align: center;
|
|
border: 1px solid #005a9c;
|
|
border-radius: 6px;
|
|
background: white;
|
|
color: #005a9c;
|
|
transition: all 0.2s ease;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
hyphens: auto;
|
|
white-space: normal;
|
|
}
|
|
|
|
.visit-office:hover {
|
|
background: #005a9c;
|
|
color: white;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 6px rgba(0, 90, 156, 0.2);
|
|
}
|
|
|
|
.visit-office .office-location {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 11px;
|
|
opacity: 0.8;
|
|
font-weight: normal;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
hyphens: auto;
|
|
line-height: 1.2;
|
|
white-space: normal;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Responsive map styles */
|
|
@media (max-width: 768px) {
|
|
.map-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
text-align: center;
|
|
}
|
|
|
|
.map-controls {
|
|
justify-content: center;
|
|
}
|
|
|
|
#main-map {
|
|
height: 300px;
|
|
}
|
|
|
|
.office-popup-content {
|
|
max-width: 250px;
|
|
}
|
|
|
|
.office-popup-content .rep-header {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
#main-map {
|
|
height: 250px;
|
|
}
|
|
|
|
.map-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.office-popup-content {
|
|
max-width: 220px;
|
|
}
|
|
|
|
.visit-office {
|
|
max-width: calc(100vw - 40px);
|
|
width: auto;
|
|
min-width: 140px;
|
|
text-align: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
.visit-office .office-location {
|
|
text-align: center;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
/* ===================================
|
|
CAMPAIGNS GRID STYLES
|
|
=================================== */
|
|
|
|
#campaigns-section {
|
|
margin-top: 60px;
|
|
padding-top: 40px;
|
|
border-top: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.campaigns-section-header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
opacity: 0;
|
|
animation: fadeIn 0.8s ease forwards;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.campaigns-section-header h2 {
|
|
color: #005a9c;
|
|
font-size: 2em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.campaigns-section-header p {
|
|
color: #666;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
#campaigns-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 30px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.campaign-card {
|
|
background: white;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
outline: none;
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
animation: campaignFadeInUp 0.6s ease forwards;
|
|
}
|
|
|
|
@keyframes campaignFadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(30px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Staggered animation delays for campaign cards */
|
|
.campaign-card:nth-child(1) { animation-delay: 0.1s; }
|
|
.campaign-card:nth-child(2) { animation-delay: 0.2s; }
|
|
.campaign-card:nth-child(3) { animation-delay: 0.3s; }
|
|
.campaign-card:nth-child(4) { animation-delay: 0.4s; }
|
|
.campaign-card:nth-child(5) { animation-delay: 0.5s; }
|
|
.campaign-card:nth-child(6) { animation-delay: 0.6s; }
|
|
.campaign-card:nth-child(7) { animation-delay: 0.7s; }
|
|
.campaign-card:nth-child(8) { animation-delay: 0.8s; }
|
|
.campaign-card:nth-child(9) { animation-delay: 0.9s; }
|
|
.campaign-card:nth-child(10) { animation-delay: 1.0s; }
|
|
.campaign-card:nth-child(11) { animation-delay: 1.1s; }
|
|
.campaign-card:nth-child(12) { animation-delay: 1.2s; }
|
|
/* For campaigns beyond 12, they'll still animate but without additional delay */
|
|
|
|
.campaign-card:hover,
|
|
.campaign-card:focus {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 8px 20px rgba(0, 90, 156, 0.2);
|
|
}
|
|
|
|
.campaign-card:focus {
|
|
outline: 2px solid #005a9c;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.campaign-card-image {
|
|
width: 100%;
|
|
height: 200px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.campaign-card-image::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: inherit;
|
|
transform: scale(1.1);
|
|
animation: imageZoomIn 0.8s ease forwards;
|
|
animation-delay: inherit;
|
|
z-index: 0;
|
|
}
|
|
|
|
@keyframes imageZoomIn {
|
|
from {
|
|
transform: scale(1.2);
|
|
}
|
|
to {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.campaign-card-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
|
|
transition: background 0.3s ease;
|
|
z-index: 1;
|
|
}
|
|
|
|
.campaign-card:hover .campaign-card-overlay {
|
|
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
|
|
}
|
|
|
|
.campaign-card-content {
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
.campaign-card-title {
|
|
color: #ffffff;
|
|
font-size: 1.5em;
|
|
margin: 0;
|
|
font-weight: 700;
|
|
line-height: 1.3;
|
|
text-align: center;
|
|
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
z-index: 2;
|
|
width: 100%;
|
|
transition: transform 0.3s ease, text-shadow 0.3s ease;
|
|
}
|
|
|
|
.campaign-card:hover .campaign-card-title {
|
|
transform: translateY(-2px);
|
|
text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.campaign-card-description {
|
|
color: #555;
|
|
font-size: 0.95em;
|
|
line-height: 1.6;
|
|
margin-bottom: 16px;
|
|
margin-top: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.campaign-card-levels {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.level-badge {
|
|
background: #e8f4f8;
|
|
color: #005a9c;
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.campaign-card-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.campaign-card-stats {
|
|
flex-direction: row;
|
|
gap: 12px;
|
|
}
|
|
|
|
.campaign-card-stat {
|
|
flex: 1;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.campaign-card-stat {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.stat-icon {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.3em;
|
|
font-weight: 700;
|
|
color: #005a9c;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.85em;
|
|
color: #666;
|
|
}
|
|
|
|
/* Verified response badge styling */
|
|
.campaign-card-stat.verified-response {
|
|
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
|
|
border: 1px solid #81c784;
|
|
margin: 12px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.campaign-card-stat.verified-response .stat-value {
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.campaign-card-stat.verified-response .stat-label {
|
|
color: #1b5e20;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.campaign-card-social-share {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 0;
|
|
margin-bottom: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.share-label {
|
|
font-size: 0.85em;
|
|
color: #666;
|
|
font-weight: 500;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.share-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: #f0f0f0;
|
|
color: #666;
|
|
padding: 6px;
|
|
}
|
|
|
|
.share-btn svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.share-btn:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.share-btn:focus {
|
|
outline: 2px solid #005a9c;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.share-twitter:hover {
|
|
background: #000000;
|
|
color: white;
|
|
}
|
|
|
|
.share-facebook:hover {
|
|
background: #1877f2;
|
|
color: white;
|
|
}
|
|
|
|
.share-linkedin:hover {
|
|
background: #0077b5;
|
|
color: white;
|
|
}
|
|
|
|
.share-reddit:hover {
|
|
background: #ff4500;
|
|
color: white;
|
|
}
|
|
|
|
.share-email:hover {
|
|
background: #005a9c;
|
|
color: white;
|
|
}
|
|
|
|
.share-copy:hover {
|
|
background: #34a853;
|
|
color: white;
|
|
}
|
|
|
|
.share-feedback {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
background: #34a853;
|
|
color: white;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
font-size: 0.9em;
|
|
font-weight: 500;
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: all 0.3s ease;
|
|
z-index: 10000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.share-feedback.show {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.share-feedback.error {
|
|
background: #dc3545;
|
|
}
|
|
|
|
.campaign-card-action {
|
|
margin-top: auto;
|
|
padding-top: 12px;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.btn-link {
|
|
color: #005a9c;
|
|
font-weight: 600;
|
|
font-size: 0.95em;
|
|
text-decoration: none;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.campaign-card:hover .btn-link {
|
|
color: #004a7c;
|
|
}
|
|
|
|
.campaigns-loading,
|
|
.campaigns-error,
|
|
.campaigns-empty {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #666;
|
|
opacity: 0;
|
|
animation: fadeIn 0.5s ease forwards;
|
|
}
|
|
|
|
.campaigns-loading .spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #005a9c;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
.campaigns-error {
|
|
color: #d32f2f;
|
|
}
|
|
|
|
.campaigns-empty {
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
padding: 40px;
|
|
}
|
|
|
|
/* Responsive campaign grid styles */
|
|
@media (max-width: 1024px) {
|
|
#campaigns-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
#campaigns-section {
|
|
margin-top: 40px;
|
|
padding-top: 30px;
|
|
}
|
|
|
|
.campaigns-section-header h2 {
|
|
font-size: 1.75em;
|
|
}
|
|
|
|
#campaigns-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.campaign-card-image {
|
|
height: 180px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.campaigns-section-header h2 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.campaign-card-title {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.campaign-card-image {
|
|
height: 160px;
|
|
}
|
|
|
|
.campaign-card-content {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
/* QR Code Modal Styles */
|
|
.qrcode-modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 10000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
animation: fadeIn 0.3s ease-in-out;
|
|
}
|
|
|
|
.qrcode-modal.show {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.qrcode-modal-content {
|
|
background-color: #fefefe;
|
|
margin: auto;
|
|
padding: 2rem;
|
|
border-radius: 12px;
|
|
max-width: 500px;
|
|
width: 90%;
|
|
position: relative;
|
|
animation: slideDown 0.3s ease-in-out;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.qrcode-close {
|
|
color: #aaa;
|
|
position: absolute;
|
|
right: 1.5rem;
|
|
top: 1rem;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.qrcode-close:hover,
|
|
.qrcode-close:focus {
|
|
color: #000;
|
|
}
|
|
|
|
.qrcode-modal-content h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 1.5rem;
|
|
color: #2c3e50;
|
|
text-align: center;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.qrcode-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 1.5rem;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.qrcode-container img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.qrcode-instructions {
|
|
text-align: center;
|
|
color: #6c757d;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.qrcode-modal-content .btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
transform: translateY(-50px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.qrcode-modal-content {
|
|
padding: 1.5rem;
|
|
max-width: 95%;
|
|
}
|
|
|
|
.qrcode-modal-content h2 {
|
|
font-size: 1.25rem;
|
|
}
|
|
}
|
|
|
|
/* Expandable Social Share Menu Styles */
|
|
.share-buttons-header {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
justify-content: center;
|
|
margin-top: 1rem;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
/* Primary Share Buttons */
|
|
.share-btn-primary {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
color: white;
|
|
padding: 0.75rem 1.25rem;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
backdrop-filter: blur(10px);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.share-btn-primary:hover {
|
|
background: rgba(255, 255, 255, 0.35);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.share-btn-primary svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: white;
|
|
}
|
|
|
|
.share-btn-primary.copied {
|
|
background: rgba(40, 167, 69, 0.9);
|
|
border-color: rgba(40, 167, 69, 1);
|
|
}
|
|
|
|
/* Expandable Social Menu Container */
|
|
.share-socials-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.share-socials-menu {
|
|
position: absolute;
|
|
top: calc(100% + 0.5rem);
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
|
|
padding: 0.75rem;
|
|
display: none;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
z-index: 1000;
|
|
min-width: 280px;
|
|
max-width: 320px;
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(-10px);
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.share-socials-menu.show {
|
|
display: flex;
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
/* Chevron icon rotation */
|
|
.share-btn-primary .chevron-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
fill: white;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.share-btn-primary.active .chevron-icon {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Share icon */
|
|
.share-btn-primary .share-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: white;
|
|
}
|
|
|
|
/* Social buttons inside menu */
|
|
.share-socials-menu button {
|
|
border: none;
|
|
border-radius: 8px;
|
|
width: 42px;
|
|
height: 42px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
padding: 0;
|
|
color: white;
|
|
}
|
|
|
|
.share-socials-menu button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.share-socials-menu button svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: white;
|
|
}
|
|
|
|
/* Platform-specific colors */
|
|
#share-facebook {
|
|
background: #1877f2;
|
|
}
|
|
|
|
#share-twitter {
|
|
background: #000000;
|
|
}
|
|
|
|
#share-linkedin {
|
|
background: #0077b5;
|
|
}
|
|
|
|
#share-whatsapp {
|
|
background: #25d366;
|
|
}
|
|
|
|
#share-bluesky {
|
|
background: #1185fe;
|
|
}
|
|
|
|
#share-instagram {
|
|
background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
|
|
}
|
|
|
|
#share-reddit {
|
|
background: #ff4500;
|
|
}
|
|
|
|
#share-threads {
|
|
background: #000000;
|
|
}
|
|
|
|
#share-telegram {
|
|
background: #0088cc;
|
|
}
|
|
|
|
#share-mastodon {
|
|
background: #6364ff;
|
|
}
|
|
|
|
#share-sms {
|
|
background: #34c759;
|
|
}
|
|
|
|
#share-slack {
|
|
background: #4a154b;
|
|
}
|
|
|
|
#share-discord {
|
|
background: #5865f2;
|
|
}
|
|
|
|
#share-print {
|
|
background: #6c757d;
|
|
}
|
|
|
|
#share-email {
|
|
background: #ea4335;
|
|
}
|