/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/



/* =====================================
   DENTAL CONTACT FORM
===================================== */

.dental-contact-form {
    width: 100%;
    font-family: "DM Sans", Sans-serif;
    color: #121A0F;
    box-sizing: border-box;
}

.dental-contact-form *,
.dental-contact-form *::before,
.dental-contact-form *::after {
    box-sizing: border-box;
}

/* Row layout */
.dental-contact-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 24px;
}

/* Column widths */
.dental-contact-form .form-field {
    min-width: 0;
}

.dental-contact-form .half-width {
    flex: 1 1 calc(50% - 12px);
    width: calc(50% - 12px);
}

.dental-contact-form .full-width {
    flex: 0 0 100%;
    width: 100%;
}

/* Labels */
.dental-contact-form .form-field > label {
    display: block;
    margin: 0 0 10px;
    font-family: "DM Sans", Sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #121A0F;
}

.dental-contact-form .form-field > label span {
    color: #e74c3c;
}

/* Input fields, dropdowns and textarea */
.dental-contact-form input[type="text"],
.dental-contact-form input[type="email"],
.dental-contact-form input[type="tel"],
.dental-contact-form select,
.dental-contact-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dcdfe3;
    border-radius: 5px;
    background-color: #ffffff;
    color: #121A0F;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    box-shadow: none;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}

/* Input and select height */
.dental-contact-form input[type="text"],
.dental-contact-form input[type="email"],
.dental-contact-form input[type="tel"],
.dental-contact-form select {
    height: 52px;
}

/* Dropdown */
.dental-contact-form select {
    cursor: pointer;
    appearance: auto;
}

/* Textarea */
.dental-contact-form textarea {
    min-height: 140px;
    height: 140px;
    resize: vertical;
}

/* Placeholder */
.dental-contact-form input::placeholder,
.dental-contact-form textarea::placeholder {
    color: #92999a;
    opacity: 1;
}

/* Focus effects */
.dental-contact-form input[type="text"]:focus,
.dental-contact-form input[type="email"]:focus,
.dental-contact-form input[type="tel"]:focus,
.dental-contact-form select:focus,
.dental-contact-form textarea:focus {
    border-color: #121A0F;
    box-shadow: 0 0 0 2px rgba(18, 26, 15, 0.08);
}

/* =====================================
   RADIO BUTTONS
===================================== */

.dental-contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.dental-contact-form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.dental-contact-form .wpcf7-radio .wpcf7-list-item {
    margin: 0;
}

.dental-contact-form .wpcf7-radio .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #121A0F;
    font-family: "DM Sans", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.dental-contact-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #121A0F;
    cursor: pointer;
}


/* Contact Form 7 - Glass CTA Button */
.dental-contact-form input[type="submit"] {
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: #5f9e46 !important;
    background-image: none !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 0 8px 2px rgb(0 0 0 / 16%),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1.1em 2.5em;
    color: #ffffff !important;
    font-family: "DM Sans", Sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.dental-contact-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2) !important;
    background: #48862f !important;
    color: #ffffff !important;
}


/* Loading spinner */
.dental-contact-form .wpcf7-spinner {
    vertical-align: middle;
}

/* =====================================
   VALIDATION AND RESPONSE MESSAGES
===================================== */

.dental-contact-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.dental-contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    color: #dc3545;
    font-family: "DM Sans", Sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.dental-contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 12px 15px !important;
    border-radius: 5px;
    font-family: "DM Sans", Sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* =====================================
   TABLET AND MOBILE
===================================== */

@media (max-width: 767px) {
    .dental-contact-form .form-row {
        gap: 18px;
        margin-bottom: 18px;
    }

    .dental-contact-form .half-width,
    .dental-contact-form .full-width {
        flex: 0 0 100%;
        width: 100%;
    }

    .dental-contact-form input[type="text"],
    .dental-contact-form input[type="email"],
    .dental-contact-form input[type="tel"],
    .dental-contact-form select {
        height: 48px;
    }

    .dental-contact-form textarea {
        min-height: 140px;
    }

    .dental-contact-form .wpcf7-radio {
        gap: 16px;
    }

    .dental-contact-form input[type="submit"] {
        width: 100%;
    }
}


/* white-glass-btn-hero */

:root {
    --anim--hover-time: 400ms;
    --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Main Button */
.white-glass-btn-hero {
    position: relative;
}

.white-glass-btn-hero .elementor-button {
    --border-width: clamp(1px, 0.0625em, 4px);

    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    padding: 1.1em 1.5em !important;
    border-radius: 999vw;

    /* Original Glass Background */
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.20),
        rgba(255, 255, 255, 0.05)
    ) !important;

    /* Original Glass Shadows */
    box-shadow:
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
        0 0 0 0 rgba(255, 255, 255, 1) !important;

    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));

    transition:
        all var(--anim--hover-time)
        var(--anim--hover-ease);
}

/* White Button Text */
.white-glass-btn-hero .elementor-button-text {
    color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition:
        all var(--anim--hover-time)
        var(--anim--hover-ease);
}

/* White Button Icon */
.white-glass-btn-hero .elementor-button-icon {
    color: #ffffff !important;
}

.white-glass-btn-hero .elementor-button-icon svg {
    fill: #ffffff !important;
}

/* Keep Icon and Text Above Border */
.white-glass-btn-hero .elementor-button-content-wrapper {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Animated Glass Border */
.white-glass-btn-hero .elementor-button::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;

    border-radius: 999vw;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));

    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);

    padding: var(--border-width);
    box-sizing: border-box;

    background:
        conic-gradient(
            from var(--angle-1) at 50% 50%,
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0) 5% 40%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0) 60% 95%,
            rgba(0, 0, 0, 0.5)
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.5)
        );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    transition:
        all var(--anim--hover-time) var(--anim--hover-ease),
        --angle-1 500ms ease;

    box-shadow:
        inset 0 0 calc(var(--border-width) / 2)
        rgba(255, 255, 255, 0.5);

    pointer-events: none;
}

/* Original Hover Effect */
.white-glass-btn-hero .elementor-button:hover {
    transform: scale(0.975) !important;

    box-shadow:
        inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
        0 0 0 0 rgba(255, 255, 255, 1) !important;
}

/* Rotate Border on Hover */
.white-glass-btn-hero .elementor-button:hover::after {
    --angle-1: -125deg;
}

/* White Text on Hover */
.white-glass-btn-hero .elementor-button:hover .elementor-button-text {
    color: #ffffff !important;

    text-shadow:
        0.025em 0.025em 0.025em
        rgba(0, 0, 0, 0.12);
}

/* White Icon on Hover */
.white-glass-btn-hero .elementor-button:hover .elementor-button-icon {
    color: #ffffff !important;
}

.white-glass-btn-hero .elementor-button:hover .elementor-button-icon svg {
    fill: #ffffff !important;
}

/* Smooth Press Effect */
.white-glass-btn-hero .elementor-button:active {
    transform: scale(0.975) !important;
}

/* Keyboard Focus */
.white-glass-btn-hero .elementor-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.cta-buttons a.elementor-button.elementor-button-link.elementor-size-sm  {
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: #5f9e46 !important;
    background-image: none !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 0px 8px 2px rgb(0 0 0 / 16%), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1.1em 1.5em;
    color: #ffffff !important;
    fill: #ffffff !important;
}
.cta-buttons a.elementor-button.elementor-button-link.elementor-size-sm:hover {
    transform: translateY(-2px) !important;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    background: #48862f !important;
    color: #fff !important;
}
