Main functions
This commit is contained in:
@@ -465,89 +465,408 @@ body {
|
||||
/* Calculator Styles */
|
||||
.calculator-step {
|
||||
display: none;
|
||||
animation: fadeInUp 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.calculator-step.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@keyframes fadeInUp {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Step Indicators */
|
||||
.calculator-progress-wrapper {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.step-indicator {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.step-number {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: #e5e7eb;
|
||||
color: #6b7280;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
margin-bottom: 8px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.step-indicator.active .step-number {
|
||||
background: linear-gradient(135deg, #3B82F6, #8B5CF6);
|
||||
color: white;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.step-indicator.completed .step-number {
|
||||
background: linear-gradient(135deg, #10B981, #059669);
|
||||
color: white;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.step-indicator.completed .step-number::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.step-label {
|
||||
font-size: 0.875rem;
|
||||
color: #6b7280;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.step-indicator.active .step-label {
|
||||
color: #3B82F6;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.step-indicator.completed .step-label {
|
||||
color: #10B981;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.step-connector {
|
||||
flex: 1;
|
||||
height: 2px;
|
||||
background: #e5e7eb;
|
||||
margin: 0 1rem;
|
||||
position: relative;
|
||||
top: -15px;
|
||||
}
|
||||
|
||||
/* Selection indicators */
|
||||
.selection-indicator {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.service-option.selected .selection-indicator,
|
||||
.complexity-option.selected .selection-indicator,
|
||||
.timeline-option.selected .selection-indicator {
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.service-option.selected .selection-indicator .w-6,
|
||||
.complexity-option.selected .selection-indicator .w-6,
|
||||
.timeline-option.selected .selection-indicator .w-6 {
|
||||
background: #3B82F6;
|
||||
border-color: #3B82F6;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.service-option.selected .selection-indicator .w-6::after,
|
||||
.complexity-option.selected .selection-indicator .w-6::after,
|
||||
.timeline-option.selected .selection-indicator .w-6::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
color: white;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.service-option,
|
||||
.complexity-option,
|
||||
.timeline-option {
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
position: relative;
|
||||
border-width: 2px;
|
||||
}
|
||||
|
||||
/* Calculator specific improvements */
|
||||
.calculator-step {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Better spacing and padding for calculator */
|
||||
.calculator-step .service-option,
|
||||
.calculator-step .complexity-option,
|
||||
.calculator-step .timeline-option {
|
||||
margin: 0.5rem 0;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
/* Ensure text doesn't touch edges */
|
||||
.calculator-step h2,
|
||||
.calculator-step h3,
|
||||
.calculator-step h4,
|
||||
.calculator-step p {
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
/* Responsive padding for service options */
|
||||
@media (max-width: 640px) {
|
||||
.calculator-step .service-option,
|
||||
.calculator-step .complexity-option,
|
||||
.calculator-step .timeline-option {
|
||||
padding: 1rem;
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
|
||||
.calculator-step .space-y-4 > *,
|
||||
.calculator-step .space-y-8 > * {
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Compact service options for full width layout */
|
||||
.service-option.compact {
|
||||
padding: 1rem 1.5rem;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.service-option.compact .w-14 {
|
||||
width: 3rem;
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
.service-option.compact h3 {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.service-option.compact p {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* Table-style layout for complexity and timeline */
|
||||
.complexity-option,
|
||||
.timeline-option {
|
||||
min-height: 140px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.complexity-option .w-16,
|
||||
.timeline-option .w-16 {
|
||||
width: 3.5rem;
|
||||
height: 3.5rem;
|
||||
margin: 0 auto 1rem auto;
|
||||
}
|
||||
|
||||
.complexity-option h4,
|
||||
.timeline-option h4 {
|
||||
font-size: 1.1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.complexity-option p,
|
||||
.timeline-option p {
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
/* Enhanced button styles */
|
||||
.next-step,
|
||||
.prev-step,
|
||||
.restart-calculator {
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.025em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Better result card styling */
|
||||
#step-3 .relative {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
#step-3 #final-price {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* Service Options Hover Effects */
|
||||
.service-option[data-service="web"]:hover {
|
||||
border-color: #3B82F6 !important;
|
||||
}
|
||||
|
||||
.service-option[data-service="mobile"]:hover {
|
||||
border-color: #10B981 !important;
|
||||
}
|
||||
|
||||
.service-option[data-service="design"]:hover {
|
||||
border-color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
.service-option[data-service="marketing"]:hover {
|
||||
border-color: #F59E0B !important;
|
||||
}
|
||||
|
||||
/* Complexity Options Hover Effects */
|
||||
.complexity-option[data-value="simple"]:hover {
|
||||
border-color: #10B981 !important;
|
||||
}
|
||||
|
||||
.complexity-option[data-value="medium"]:hover {
|
||||
border-color: #F59E0B !important;
|
||||
}
|
||||
|
||||
.complexity-option[data-value="complex"]:hover {
|
||||
border-color: #EF4444 !important;
|
||||
}
|
||||
|
||||
/* Timeline Options Hover Effects */
|
||||
.timeline-option[data-value="standard"]:hover {
|
||||
border-color: #3B82F6 !important;
|
||||
}
|
||||
|
||||
.timeline-option[data-value="rush"]:hover {
|
||||
border-color: #F97316 !important;
|
||||
}
|
||||
|
||||
.timeline-option[data-value="extended"]:hover {
|
||||
border-color: #059669 !important;
|
||||
}
|
||||
|
||||
.service-option:hover,
|
||||
.complexity-option:hover,
|
||||
.timeline-option:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
/* Selected states with specific colors */
|
||||
.service-option[data-service="web"].selected {
|
||||
border-color: #3B82F6 !important;
|
||||
}
|
||||
|
||||
.service-option[data-service="mobile"].selected {
|
||||
border-color: #10B981 !important;
|
||||
}
|
||||
|
||||
.service-option[data-service="design"].selected {
|
||||
border-color: #8B5CF6 !important;
|
||||
}
|
||||
|
||||
.service-option[data-service="marketing"].selected {
|
||||
border-color: #F59E0B !important;
|
||||
}
|
||||
|
||||
.complexity-option[data-value="simple"].selected {
|
||||
border-color: #10B981 !important;
|
||||
}
|
||||
|
||||
.complexity-option[data-value="medium"].selected {
|
||||
border-color: #F59E0B !important;
|
||||
}
|
||||
|
||||
.complexity-option[data-value="complex"].selected {
|
||||
border-color: #EF4444 !important;
|
||||
}
|
||||
|
||||
.timeline-option[data-value="standard"].selected {
|
||||
border-color: #3B82F6 !important;
|
||||
}
|
||||
|
||||
.timeline-option[data-value="rush"].selected {
|
||||
border-color: #F97316 !important;
|
||||
}
|
||||
|
||||
.timeline-option[data-value="extended"].selected {
|
||||
border-color: #059669 !important;
|
||||
}
|
||||
|
||||
.service-option.selected,
|
||||
.complexity-option.selected,
|
||||
.timeline-option.selected {
|
||||
border-color: #3B82F6 !important;
|
||||
background-color: #EBF8FF !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
|
||||
background: linear-gradient(135deg, #EBF8FF, #F0F9FF) !important;
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
|
||||
}
|
||||
|
||||
.service-option.selected::after,
|
||||
.complexity-option.selected::after,
|
||||
.timeline-option.selected::after {
|
||||
content: '✓';
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background: #3B82F6;
|
||||
color: white;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
/* Dark mode adjustments for selected states */
|
||||
.dark .service-option.selected,
|
||||
.dark .complexity-option.selected,
|
||||
.dark .timeline-option.selected {
|
||||
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1)) !important;
|
||||
border-color: #60A5FA !important;
|
||||
}
|
||||
|
||||
/* Price Display Animation */
|
||||
#final-price {
|
||||
animation: priceReveal 0.8s ease-in-out;
|
||||
animation: priceReveal 1.2s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes priceReveal {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
transform: scale(0.8) rotateY(180deg);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.1);
|
||||
transform: scale(1.1) rotateY(90deg);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
transform: scale(1) rotateY(0deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Calculator Progress Bar */
|
||||
.calculator-progress {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
height: 6px;
|
||||
background: #e5e7eb;
|
||||
border-radius: 2px;
|
||||
margin-bottom: 2rem;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.calculator-progress-bar {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #3B82F6, #8B5CF6);
|
||||
border-radius: 2px;
|
||||
transition: width 0.3s ease;
|
||||
background: linear-gradient(90deg, #3B82F6, #8B5CF6, #06B6D4);
|
||||
border-radius: 3px;
|
||||
transition: width 0.6s ease-in-out;
|
||||
width: 33.33%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.calculator-progress-bar::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
|
||||
animation: progressShine 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes progressShine {
|
||||
0% { left: -100%; }
|
||||
100% { left: 100%; }
|
||||
}
|
||||
|
||||
.calculator-progress-bar.step-1 {
|
||||
width: 33.33%;
|
||||
}
|
||||
|
||||
@@ -559,6 +878,11 @@ body {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Button hover effects */
|
||||
.group:hover .fas {
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
/* Calculator Mobile Improvements */
|
||||
@media (max-width: 768px) {
|
||||
.service-option,
|
||||
@@ -568,7 +892,27 @@ body {
|
||||
}
|
||||
|
||||
#final-price {
|
||||
font-size: 2rem;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.step-connector {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.calculator-progress-wrapper .flex {
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.step-indicator {
|
||||
flex-direction: row;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.step-number {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user