401 lines
7.9 KiB
CSS
401 lines
7.9 KiB
CSS
/* Contact Section */
|
|
.contact {
|
|
padding: var(--space-2xl) 0;
|
|
background: var(--bg-primary);
|
|
position: relative;
|
|
}
|
|
|
|
/* Section Title */
|
|
.contact .section-title {
|
|
text-align: center;
|
|
font-size: var(--font-size-3xl);
|
|
margin-bottom: var(--space-2xl);
|
|
color: var(--text-color);
|
|
position: relative;
|
|
display: inline-block;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.contact .section-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -10px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 3px;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
var(--accent-color),
|
|
transparent
|
|
);
|
|
}
|
|
|
|
/* Contact Grid */
|
|
.contact-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-2xl);
|
|
padding: 0 var(--space-md);
|
|
}
|
|
|
|
/* Contact Form */
|
|
.contact-form {
|
|
background: var(--card-bg);
|
|
padding: var(--space-xl);
|
|
border-radius: var(--border-radius-lg);
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.contact-form:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: var(--space-lg);
|
|
position: relative;
|
|
}
|
|
|
|
.form-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
margin-bottom: var(--space-xs);
|
|
color: var(--text-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.required-field::after {
|
|
content: '*';
|
|
color: var(--error-red);
|
|
margin-left: var(--space-xs);
|
|
}
|
|
|
|
.field-hint {
|
|
font-size: var(--font-size-sm);
|
|
color: var(--text-muted);
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.input-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.input-wrapper i {
|
|
position: absolute;
|
|
left: var(--space-md);
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-color);
|
|
opacity: 0.7;
|
|
transition: color var(--transition-base);
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
.input-wrapper textarea + i {
|
|
top: var(--space-md);
|
|
transform: none;
|
|
}
|
|
|
|
.input-wrapper input,
|
|
.input-wrapper textarea {
|
|
width: 100%;
|
|
padding: var(--space-md);
|
|
padding-left: calc(var(--space-md) * 2 + 16px);
|
|
background: var(--bg-primary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: var(--border-radius-md);
|
|
color: var(--text-color);
|
|
font-family: var(--font-primary);
|
|
transition: all var(--transition-base);
|
|
position: relative;
|
|
}
|
|
|
|
.input-wrapper textarea {
|
|
min-height: 150px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.input-wrapper input:hover,
|
|
.input-wrapper textarea:hover {
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.input-wrapper input:focus,
|
|
.input-wrapper textarea:focus {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 3px rgba(21, 52, 209, 0.1);
|
|
}
|
|
|
|
.input-wrapper input:focus + i,
|
|
.input-wrapper textarea:focus + i {
|
|
color: var(--accent-color);
|
|
top: 50%;
|
|
}
|
|
|
|
/* Character Counter */
|
|
.char-counter {
|
|
position: absolute;
|
|
right: var(--space-sm);
|
|
bottom: var(--space-xs);
|
|
font-size: var(--font-size-sm);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Input States */
|
|
.input-wrapper.valid input,
|
|
.input-wrapper.valid textarea {
|
|
border-color: var(--success-green);
|
|
}
|
|
|
|
.input-wrapper.invalid input,
|
|
.input-wrapper.invalid textarea {
|
|
border-color: var(--error-red);
|
|
}
|
|
|
|
.error-message {
|
|
color: var(--error-red);
|
|
font-size: var(--font-size-sm);
|
|
margin-top: var(--space-xs);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
top: 0;
|
|
}
|
|
|
|
/* Submit Button */
|
|
.submit-button {
|
|
width: 100%;
|
|
padding: var(--space-md) var(--space-lg);
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--border-radius-md);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
transition: all var(--transition-base);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.submit-button:hover {
|
|
background: var(--accent-color-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.submit-button:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
/* Form Feedback */
|
|
.form-feedback {
|
|
margin-top: var(--space-md);
|
|
padding: var(--space-md);
|
|
border-radius: var(--border-radius-md);
|
|
font-weight: 500;
|
|
display: none;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.form-feedback.success {
|
|
background: rgba(76, 175, 80, 0.1);
|
|
color: var(--success-green);
|
|
border: 1px solid var(--success-green);
|
|
}
|
|
|
|
.form-feedback.error {
|
|
background: rgba(244, 67, 54, 0.1);
|
|
color: var(--error-red);
|
|
border: 1px solid var(--error-red);
|
|
}
|
|
|
|
/* Contact Info */
|
|
.contact-info {
|
|
padding: var(--space-xl);
|
|
background: var(--card-bg);
|
|
border-radius: var(--border-radius-lg);
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.contact-info:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.contact-info h3 {
|
|
font-size: var(--font-size-xl);
|
|
margin-bottom: var(--space-xl);
|
|
color: var(--text-color);
|
|
position: relative;
|
|
display: inline-block;
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: var(--accent-color);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.info-grid {
|
|
display: grid;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.info-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-md);
|
|
transition: transform var(--transition-base);
|
|
padding: var(--space-sm);
|
|
border-radius: var(--border-radius-md);
|
|
}
|
|
|
|
.info-item:hover {
|
|
transform: translateX(var(--space-xs));
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.info-item i {
|
|
width: 40px;
|
|
height: 40px;
|
|
min-width: 40px;
|
|
background: var(--accent-color);
|
|
border-radius: var(--border-radius-full);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.info-item:hover i {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.info-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.info-content p {
|
|
color: var(--text-color);
|
|
margin-bottom: var(--space-xs);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.info-content p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.info-subtitle {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-sm);
|
|
font-style: italic;
|
|
}
|
|
|
|
.info-item a {
|
|
color: var(--accent-color);
|
|
text-decoration: none;
|
|
transition: color var(--transition-base);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.info-item a:hover {
|
|
color: var(--accent-color-dark);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Loading State */
|
|
.submit-button .loading-spinner {
|
|
display: none;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: white;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 968px) {
|
|
.contact-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: var(--space-xl);
|
|
}
|
|
|
|
.info-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.contact {
|
|
padding: var(--space-xl) 0;
|
|
}
|
|
|
|
.contact .section-title {
|
|
font-size: var(--font-size-2xl);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.contact-form,
|
|
.contact-info {
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.info-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* High Contrast Mode */
|
|
@media (forced-colors: active) {
|
|
.contact-form,
|
|
.contact-info {
|
|
border: 1px solid CanvasText;
|
|
}
|
|
|
|
.info-item i {
|
|
border: 1px solid CanvasText;
|
|
}
|
|
}
|
|
|
|
/* Reduced Motion */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.input-wrapper input,
|
|
.input-wrapper textarea,
|
|
.contact-form,
|
|
.contact-info,
|
|
.info-item,
|
|
.info-item i {
|
|
transition: none;
|
|
}
|
|
}
|