Files
parts_website/static/css/pages/core/contact.css

173 lines
2.5 KiB
CSS

/*
h1, h2, h3 {
margin-bottom: 1rem;
align-self: center;
justify-self: center;
margin: 0 auto;
width: fit-content;
}
section {
display: flex;
margin: 0 auto;
width: 100vw;
}
.container {
display: flex;
flex-direction: column;
align-content: center;
}
.container-input {
display: flex;
flex-direction: column;
align-items: center;
}
.container-input label {
width: 100%;
margin: 0 auto;
}
/* Contact Form Section * /
.contact-form {
padding: 8rem 0 4rem;
background: linear-gradient(45deg, #f8fafc, #eff6ff);
}
.contact-form-content {
width: 50vw;
}
.contact-form h1 {
font-size: 3rem;
line-height: 1.2;
margin-bottom: 1.5rem;
color: var(--text);
}
.contact-form p {
font-size: 1.25rem;
margin-bottom: 2rem;
color: var(--subheading);
}
table {
margin: 0 auto;
}
th.lhs,
td.lhs {
min-width: 8vw;
max-width: 8vw;
}
th.rhs,
td.rhs {
min-width: 36vw;
max-width: 36vw;
}
td input,
td textarea {
width: 100%;
}
textarea {
resize: vertical;
}
.container-checkbox.receive_marketing {
margin-left: 22.25vw;
}
*/
.contact-section {
padding: 2rem 2rem 4rem;
}
.contact-form {
max-width: 800px;
margin: 0 auto;
background: #fff;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.form-grid {
display: grid;
grid-template-columns: 200px 1fr;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.form-label {
padding-top: 0.5rem;
font-weight: 500;
}
.form-input {
width: 100%;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 1rem;
}
textarea.form-input {
min-height: 120px;
}
.marketing-consent {
margin: 2rem 0;
padding-left: 200px;
}
input[type="submit"] {
margin-left: 40%;
padding: 0.75rem 1.5rem;
background: #2563eb;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
input[type="submit"]:hover {
background: #1d4ed8;
}
.data-notice {
margin-top: 3rem;
padding: 1.5rem;
background: #f3f4f6;
border-radius: 4px;
font-size: 0.95rem;
}
.data-notice h3 {
margin-bottom: 1rem;
font-size: 1.1rem;
}
@media (max-width: 768px) {
.form-grid {
grid-template-columns: 1fr;
gap: 0.5rem;
}
.form-label {
padding-top: 0;
}
.marketing-consent {
padding-left: 0;
}
.submit-button {
margin-left: 0;
width: 100%;
}
}