* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #e0fbfc 0%, #b8f2f3 100%);
min-height: 100vh;
padding: 2rem;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background: white;
max-width: 800px;
width: 100%;
border-radius: 24px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
overflow: hidden;
animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.form-header {
background: linear-gradient(135deg, #e0fbfc, #b8f2f3);
padding: 3rem 2.5rem;
text-align: center;
position: relative;
overflow: hidden;
}
.form-header::before {
content: '';
position: absolute;
top: -50%;
right: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
animation: float 15s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
50% { transform: translate(-30px, -30px) rotate(180deg); }
}
.icon-container {
width: 80px;
height: 80px;
background: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
position: relative;
z-index: 1;
}
.icon-container ion-icon {
font-size: 3rem;
color: #3d9297;
}
.form-header h1 {
color: #2c3e50;
font-size: 2rem;
margin-bottom: 0.5rem;
position: relative;
z-index: 1;
}
.form-header p {
color: #546e7a;
font-size: 1rem;
position: relative;
z-index: 1;
}
.form-body {
padding: 2.5rem;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group.full-width {
grid-column: 1 / -1;
}
label {
font-weight: 500;
color: #2c3e50;
margin-bottom: 0.5rem;
font-size: 0.95rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
label ion-icon {
font-size: 1.125rem;
color: #3d9297;
}
.required {
color: #e63946;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
padding: 0.875rem 1rem;
border: 2px solid #e0fbfc;
border-radius: 12px;
font-size: 0.95rem;
font-family: inherit;
transition: all 0.3s ease;
outline: none;
background: #f8feff;
}
input:focus,
select:focus,
textarea:focus {
border-color: #3d9297;
background: white;
box-shadow: 0 0 0 4px rgba(61, 146, 151, 0.1);
}
select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233d9297' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 1rem center;
padding-right: 2.5rem;
}
textarea {
resize: vertical;
min-height: 100px;
}
.time-slots {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 0.75rem;
margin-top: 0.5rem;
}
.time-slot {
position: relative;
}
.time-slot input[type="radio"] {
position: absolute;
opacity: 0;
cursor: pointer;
}
.time-slot label {
display: block;
padding: 0.75rem 0.5rem;
border: 2px solid #e0fbfc;
border-radius: 10px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
background: #f8feff;
font-weight: 500;
font-size: 0.875rem;
margin: 0;
}
.time-slot input[type="radio"]:checked + label {
background: linear-gradient(135deg, #e0fbfc, #b8f2f3);
border-color: #3d9297;
color: #2c3e50;
font-weight: 600;
}
.time-slot label:hover {
border-color: #3d9297;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(61, 146, 151, 0.15);
}
.checkbox-group {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
accent-color: #3d9297;
}
.checkbox-group label {
margin: 0;
cursor: pointer;
font-weight: normal;
color: #546e7a;
font-size: 0.875rem;
}
.submit-btn {
width: 100%;
padding: 1.125rem;
background: linear-gradient(135deg, #3d9297, #2c7a7f);
color: white;
border: none;
border-radius: 12px;
font-size: 1.125rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 2rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
box-shadow: 0 6px 20px rgba(61, 146, 151, 0.3);
}
.submit-btn ion-icon {
font-size: 1.5rem;
}
.submit-btn:hover {
background: linear-gradient(135deg, #2c7a7f, #3d9297);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(61, 146, 151, 0.4);
}
.submit-btn:active {
transform: translateY(0);
}
.info-box {
background: linear-gradient(135deg, #e0fbfc, #f8feff);
border-left: 4px solid #3d9297;
padding: 1rem 1.25rem;
border-radius: 8px;
margin-top: 1.5rem;
display: flex;
align-items: start;
gap: 1rem;
}
.info-box ion-icon {
font-size: 1.5rem;
color: #3d9297;
flex-shrink: 0;
margin-top: 0.125rem;
}
.info-box p {
color: #546e7a;
font-size: 0.875rem;
line-height: 1.6;
margin: 0;
}
@media (max-width: 768px) {
body {
padding: 1rem;
}
.form-grid {
grid-template-columns: 1fr;
}
.form-header {
padding: 2rem 1.5rem;
}
.form-body {
padding: 1.5rem;
}
.time-slots {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}
}
No comments yet. Be the first!