.wp-block-uptimeimpact-downtime-calculator {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}
.dc-calculator {
margin: 0 auto;
} .dc-form {
background: #F9FAFB;
padding: 2.5rem;
border-radius: 12px;
margin-bottom: 2rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
border: 1px solid #E5E7EB;
} .dc-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
} .dc-field {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.dc-field label {
font-weight: 600;
font-size: 0.875rem;
color: #1F3556;
letter-spacing: 0.01em;
}
.dc-field input,
.dc-field select {
padding: 0.75rem 1rem;
border: 1.5px solid #E5E7EB;
background: #ffffff;
border-radius: 8px;
font-size: 1rem;
color: #1F3556;
transition: all 0.2s ease;
}
.dc-field input:focus,
.dc-field select:focus {
outline: none;
border-color: #2FB344;
box-shadow: 0 0 0 3px rgba(47, 179, 68, 0.1);
}
.dc-field input:hover,
.dc-field select:hover {
border-color: #6B7280;
} .dc-field input[type="checkbox"] {
width: 18px;
height: 18px;
margin-right: 0.5rem;
cursor: pointer;
accent-color: #2FB344;
flex-shrink: 0;
}
.dc-field label:has(input[type="checkbox"]) {
flex-direction: row;
align-items: flex-start;
cursor: pointer;
padding: 1rem;
background: #FFFFFF;
border-radius: 8px;
border: 1.5px solid #E5E7EB;
font-weight: 500;
transition: all 0.2s ease;
}
.dc-field label:has(input[type="checkbox"]):hover {
border-color: #2FB344;
background: #F0FDF4;
}
.dc-field small {
color: #6B7280;
font-size: 0.8125rem;
line-height: 1.5;
} .dc-actions {
display: flex;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
padding-top: 1.5rem;
border-top: 1px solid #E5E7EB;
}
.dc-button {
padding: 0.75rem 1.5rem;
border: 1.5px solid #E5E7EB;
background: #ffffff;
color: #1F3556;
border-radius: 8px;
cursor: pointer;
font-size: 0.9375rem;
font-weight: 600;
transition: all 0.2s ease;
}
.dc-button:hover {
background: #F9FAFB;
border-color: #6B7280;
}
.dc-button--primary {
background: #2FB344;
color: #ffffff;
border-color: #2FB344;
}
.dc-button--primary:hover {
background: #27a03a;
border-color: #27a03a;
}
.dc-status {
font-size: 0.875rem;
padding: 0.5rem 1rem;
border-radius: 6px;
font-weight: 500;
}
.dc-status--success {
background: #D1FAE5;
color: #065F46;
}
.dc-status--error {
background: #FEE2E2;
color: #991B1B;
} .dc-results {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
margin-bottom: 2rem;
}
.dc-card {
background: #ffffff;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
border: 1px solid #E5E7EB;
transition: all 0.2s ease;
}
.dc-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
}
.dc-card--primary {
background: #1F3556;
color: white;
border-color: #1F3556;
}
.dc-card h3 {
font-size: 0.875rem;
margin: 0 0 1rem 0;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
opacity: 0.8;
}
.dc-card--primary h3 {
color: rgba(255, 255, 255, 0.9);
}
.dc-highlight {
font-size: 2.5rem;
font-weight: 700;
margin: 0.5rem 0 1rem 0;
letter-spacing: -0.02em;
line-height: 1.1;
}
.dc-description {
font-size: 0.875rem;
line-height: 1.6;
margin: 0;
opacity: 0.75;
}
.dc-dl {
display: flex;
flex-direction: column;
gap: 0;
}
.dc-dl > div {
display: flex;
justify-content: space-between;
padding: 0.875rem 0;
border-bottom: 1px solid #F3F4F6;
align-items: center;
}
.dc-dl > div:last-child {
border-bottom: none;
}
.dc-dl dt {
font-weight: 500;
color: #6B7280;
font-size: 0.9375rem;
}
.dc-dl dd {
margin: 0;
font-weight: 700;
font-size: 1rem;
color: var(--wp--preset--color--accent, #2FB344);
} .dc-cta {
background: linear-gradient(135deg, #F0FDF4 0%, #F9FAFB 100%);
padding: 2.5rem;
border-radius: 12px;
text-align: center;
border: 1.5px solid #E5E7EB;
position: relative;
}
.dc-cta h3 {
font-size: 1.5rem;
font-weight: 700;
color: #1F3556;
margin: 0 0 0.5rem 0;
}
.dc-cta p {
font-size: 1rem;
color: #6B7280;
margin: 0 0 1.5rem 0;
}
.dc-button--cta {
padding: 1rem 2.5rem;
background: #2FB344;
color: #ffffff;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 0.5rem;
box-shadow: 0 4px 12px rgba(47, 179, 68, 0.25);
}
.dc-button--cta:hover {
background: #27a03a;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(47, 179, 68, 0.35);
}
.dc-button--cta svg {
flex-shrink: 0;
}
.dc-cta .dc-status {
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
font-size: 0.875rem;
padding: 0.5rem 1.25rem;
border-radius: 6px;
font-weight: 600;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
white-space: nowrap;
}
.dc-cta .dc-status:not(:empty) {
opacity: 1;
} @media (max-width: 992px) {
.dc-grid {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
}
@media (max-width: 768px) {
.wp-block-uptimeimpact-downtime-calculator {
padding: 1rem 0.5rem;
}
.dc-form {
padding: 1.5rem;
}
.dc-grid {
grid-template-columns: 1fr;
gap: 1.25rem;
}
.dc-highlight {
font-size: 2rem;
}
.dc-actions {
flex-direction: column;
align-items: stretch;
}
.dc-button {
width: 100%;
text-align: center;
}
.dc-results {
grid-template-columns: 1fr;
gap: 1.25rem;
}
.dc-cta {
padding: 2rem 1.5rem;
}
.dc-cta h3 {
font-size: 1.25rem;
}
.dc-button--cta {
width: 100%;
justify-content: center;
}
}
@media (max-width: 480px) {
.dc-form {
padding: 1.25rem;
}
.dc-card {
padding: 1.5rem;
}
.dc-highlight {
font-size: 1.75rem;
}
.dc-cta {
padding: 1.5rem 1rem;
}
.dc-button--cta {
padding: 0.875rem 1.5rem;
font-size: 0.9375rem;
}
}