/* The home page's additions to the template styles in style.css. */

/* About: the founder and client links read as links */
.about-content .text p a { color: var(--mainGreen); text-decoration: underline; text-underline-offset: .2em; }
.about-content .text p a:hover { color: var(--blackColor); }

/* Case studies */
.case-studies-more { text-align: center; margin-top: 10px; }
/* Product screenshots sit where the other cards show device mockups. */
/* flow-root keeps the screenshot's top margin inside the card instead of moving the card down. */
.single-portfolio-item .image.image--shot { display: flow-root !important; }
.single-portfolio-item .image img.screen-shot {
    display: block; height: calc(69% - 40px); margin: 25px auto 15px !important; padding: 0;
    border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}
/* Some current logos are drawn for dark backgrounds. */
.single-portfolio-item .image img.logo-on-dark {
    width: 46%; padding: 9px 12px; border-radius: 5px; background-color: var(--blackColor);
}

/* Figures */
.single-figure { margin: 15px 0; text-align: center; }
.single-figure strong { display: block; color: var(--mainGreen); font-size: 44px; font-weight: 800; line-height: 1.1; }
.single-figure span { display: block; margin-top: 6px; font-weight: 600; }
@media (max-width: 767px) {
    .single-figure strong { font-size: 32px; }
}

/* Estimate form: a dark panel with the pitch beside the form */
.estimate-area { background-color: #f9f9f9; }
.estimate-wrap {
    display: grid; grid-template-columns: 5fr 7fr; overflow: hidden; border-radius: 10px;
    background-color: var(--whiteColor); box-shadow: 0 30px 60px rgba(49, 53, 62, .14);
}
.estimate-info {
    position: relative; display: flex; flex-direction: column; padding: 56px 48px;
    background: radial-gradient(420px 300px at 100% 100%, rgba(106, 186, 3, .22), transparent 70%), var(--blackColor);
    color: #e3e3e3;
}
.estimate-kicker { color: var(--mainColor); font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.estimate-info h2 { margin: 14px 0 18px; color: var(--whiteColor); font-size: 36px; line-height: 1.3; }
.estimate-info h2 .green-highlight { display: inline-block; height: 46px; padding: 2px 1px 2px 14px; background: var(--mainGreen); }
.estimate-info p { color: #e3e3e3; font-size: 17px; }
.estimate-contacts { margin: 18px 0 0; padding: 0; list-style: none; }
.estimate-contacts li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 600; color: var(--whiteColor); }
.estimate-contacts i {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background-color: rgba(255, 255, 255, .08); color: var(--mainColor); font-size: 20px;
}
.estimate-contacts a { color: var(--whiteColor); }
.estimate-contacts a:hover { color: var(--mainColor); }
.estimate-info .estimate-proof {
    margin: auto 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12);
    color: #c9ccd2; font-size: 15px;
}

.estimate-form { padding: 48px 48px 44px; }
.estimate-choice { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.estimate-choice legend, .estimate-field label {
    display: block; margin-bottom: 10px; padding: 0; color: var(--blackColor); font-size: 16px; font-weight: 700;
}
.estimate-field label em { margin-left: 6px; color: #8a8f99; font-size: 14px; font-style: normal; font-weight: 600; }
.estimate-toggle, .estimate-tiles { display: grid; gap: 10px; }
.estimate-toggle { grid-template-columns: 1fr 1fr; }
.estimate-tiles { grid-template-columns: repeat(4, 1fr); }
.estimate-toggle label, .estimate-tiles label { position: relative; margin: 0; cursor: pointer; }
.estimate-toggle input, .estimate-tiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.estimate-toggle span, .estimate-tiles span {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%;
    border: 1.5px solid #e1e3e8; border-radius: 8px; background-color: var(--whiteColor);
    color: var(--blackColor); font-weight: 700; font-size: 15px; text-align: center; transition: var(--transition);
}
.estimate-toggle span { padding: 13px 12px; }
.estimate-tiles span { flex-direction: column; gap: 6px; padding: 16px 8px 14px; }
.estimate-toggle i, .estimate-tiles i { color: var(--mainGreen); font-size: 22px; transition: var(--transition); }
.estimate-tiles i { font-size: 28px; }
.estimate-toggle label:hover span, .estimate-tiles label:hover span { border-color: var(--mainGreen); }
.estimate-toggle input:checked + span, .estimate-tiles input:checked + span {
    border-color: var(--mainGreen); background-color: rgba(106, 186, 3, .08); box-shadow: inset 0 0 0 1px var(--mainGreen);
}
.estimate-toggle input:focus-visible + span, .estimate-tiles input:focus-visible + span { outline: 2px solid var(--mainColor); outline-offset: 2px; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.estimate-field { margin-bottom: 20px; }
.estimate-field input, .estimate-field textarea {
    display: block; width: 100%; padding: 13px 16px; border: 1.5px solid #e1e3e8; border-radius: 8px;
    background-color: var(--whiteColor); color: var(--blackColor); font-family: var(--fontFamily); font-size: 16px;
    transition: var(--transition);
}
.estimate-field input::placeholder, .estimate-field textarea::placeholder { color: #a5a9b2; }
.estimate-field textarea { min-height: 120px; resize: vertical; }
.estimate-field input:focus, .estimate-field textarea:focus {
    outline: 0; border-color: var(--mainGreen); box-shadow: 0 0 0 4px rgba(106, 186, 3, .14);
}
.estimate-field .err-message { margin-top: 6px; border-radius: 4px; }
.estimate-send { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 6px; padding: 16px; border: 0; font-size: 17px; }
.estimate-send i { font-size: 22px; }
@media (max-width: 991px) {
    .estimate-wrap { grid-template-columns: 1fr; }
    .estimate-info { padding: 44px 36px; }
    .estimate-info .estimate-proof { margin-top: 10px; }
}
@media (max-width: 575px) {
    .estimate-info { padding: 36px 22px; }
    .estimate-info h2 { font-size: 28px; }
    .estimate-info h2 .green-highlight { height: 38px; }
    .estimate-form { padding: 32px 20px 28px; }
    .estimate-tiles { grid-template-columns: 1fr 1fr; }
    .estimate-grid { grid-template-columns: 1fr; }
}
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-sent { margin: 15px 0 0; font-weight: 700; color: var(--mainGreen); }
.form-sent--error { color: #c2410c; }
@media (max-width: 767px) {
    .estimate-card { padding: 28px 20px; }
    .estimate-grid { grid-template-columns: 1fr; }
}
