168 lines
3.3 KiB
CSS
168 lines
3.3 KiB
CSS
.contact-form-box {
|
|
position: relative;
|
|
isolation: isolate;
|
|
width: 100%;
|
|
max-width: 36rem;
|
|
margin: 0 auto;
|
|
padding: 2rem;
|
|
border-radius: 1.5rem;
|
|
background-color: rgba(255, 255, 255, 0.95);
|
|
box-shadow:
|
|
0 4px 24px rgba(0, 0, 0, 0.08),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.contact-form-box::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: inherit;
|
|
padding: 2px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(56, 189, 248, 0.45),
|
|
rgba(109, 40, 217, 0.35),
|
|
rgba(60, 60, 60, 0.15)
|
|
);
|
|
-webkit-mask:
|
|
linear-gradient(#fff 0 0) content-box,
|
|
linear-gradient(#fff 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask:
|
|
linear-gradient(#fff 0 0) content-box,
|
|
linear-gradient(#fff 0 0);
|
|
mask-composite: exclude;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.contact-form-inner {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.contact-form-title {
|
|
margin: 0 0 0.25rem;
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(90deg, #38bdf8, #6d28d9);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
color: transparent;
|
|
}
|
|
|
|
.contact-form-description {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
color: #6b7280;
|
|
}
|
|
|
|
.contact-form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.contact-form-label {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #374151;
|
|
}
|
|
|
|
.contact-form-label-optional {
|
|
font-weight: 400;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.contact-form-input,
|
|
.contact-form-textarea {
|
|
width: 100%;
|
|
border-radius: 0.75rem;
|
|
border: 1px solid rgba(60, 60, 60, 0.25);
|
|
background-color: rgba(255, 255, 255, 0.9);
|
|
padding: 0.75rem 1rem;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
color: #171717;
|
|
transition:
|
|
border-color 0.2s ease,
|
|
box-shadow 0.2s ease;
|
|
}
|
|
|
|
.contact-form-input::placeholder,
|
|
.contact-form-textarea::placeholder {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.contact-form-input:focus,
|
|
.contact-form-textarea:focus {
|
|
outline: none;
|
|
border-color: #38bdf8;
|
|
box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
|
|
}
|
|
|
|
.contact-form-textarea {
|
|
min-height: 10rem;
|
|
resize: vertical;
|
|
}
|
|
|
|
.contact-form-submit {
|
|
align-self: flex-start;
|
|
margin-top: 0.5rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.625rem 1.5rem;
|
|
border: none;
|
|
border-radius: 9999px;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: linear-gradient(90deg, #38bdf8, #6d28d9);
|
|
box-shadow: 0 2px 12px rgba(56, 189, 248, 0.25);
|
|
cursor: pointer;
|
|
transition:
|
|
transform 0.25s ease,
|
|
box-shadow 0.25s ease,
|
|
filter 0.25s ease;
|
|
}
|
|
|
|
.contact-form-submit:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 20px rgba(109, 40, 217, 0.35);
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
.contact-form-submit:focus-visible {
|
|
outline: 2px solid #38bdf8;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.contact-form-box {
|
|
background-color: rgba(24, 24, 27, 0.95);
|
|
box-shadow:
|
|
0 4px 24px rgba(0, 0, 0, 0.35),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.contact-form-description {
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.contact-form-label {
|
|
color: #e4e4e7;
|
|
}
|
|
|
|
.contact-form-input,
|
|
.contact-form-textarea {
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
background-color: rgba(0, 0, 0, 0.25);
|
|
color: #fafafa;
|
|
}
|
|
}
|