/* =========================
   1. PAGE LOAD + GLOBAL
========================= */
body {
  opacity: 0;
  animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

img {
  border-radius: 6px;
}

input[type="number"] {
  width: 70px !important;
}


/* =========================
   2. HEADER TEXT OVERRIDE
========================= */
.welcome_message.header1_item {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  visibility: hidden;
  position: relative;
  white-space: nowrap;
}

.welcome_message.header1_item::before {
  content: "📞 0800 887 0297   ✉️ info@revivestudios.co.uk";
  visibility: visible;
  position: absolute;
  inset: 0 0 auto 0;
}


/* =========================
   3. OVERLAY / IMAGE POPUP
========================= */
.details_overlay {
  background-color: rgba(0, 0, 0, 0.9) !important;
}

.details_overlay_image {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}


/* =========================
   4. FLEXSLIDER NAV
========================= */
.flexslider .flex-direction-nav .flex-prev,
.flexslider .flex-direction-nav .flex-next {
  opacity: 0.8;
  color: #fff;
  text-shadow: 0 0 10px #520052;
}

.flexslider .flex-direction-nav .flex-prev {
  left: 5px;
}

.flexslider .flex-direction-nav .flex-next {
  right: 5px;
}


/* =========================
   5. BUTTONS - BASE
========================= */
.btn,
.button1,
.button2,
.button3,
.button5 {
  display: inline-block;
  color: #fff;
  border: none;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Button colors */
.button1,
.button5 {
  background-color: #520050;
}

.button2 {
  background-color: #00b67a;
}

.button3 {
  background-color: #960004;
}

/* Pill styling */
.button1,
.button2,
.button3 {
  padding: 12px 20px;
  border-radius: 40px;
}

.button5 {
  padding: 4px 15px;
  border-radius: 40px;
}

/* Hover */
.button1:hover,
.button2:hover,
.button3:hover,
.button5:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Active */
.button1:active,
.button2:active,
.button3:active,
.button5:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* =========================
   6. BUTTON INNER TEXT
========================= */
.button1 .large-text,
.button3 .large-text,
.button5 .large-text {
  display: block;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.1;
}

.button1 .small-text,
.button3 .small-text,
.button5 .small-text {
  display: block;
  font-size: 0.8em;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.1;
}

.main-text {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
}

.sub-text {
  display: block;
  font-size: 0.8em;
  font-weight: normal;
  opacity: 0.9;
}


/* =========================
   7. FLOATING BUTTON
========================= */
.floating-button-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}

.floating-button-container .button1 {
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-button-container .button1:hover {
  transform: translateY(-3px);
}


/* =========================
   8. FOOTER
========================= */
footer {
  margin-top: 0 !important;
  display: flow-root;
}

.footer_top {
  padding-top: 0 !important;
}

.footer_copyright {
  visibility: hidden;
  position: relative;
}

.footer_copyright::after {
  content: "2000-2026 Revive Studios ✉️ info@revivestudios.co.uk";
  white-space: pre;
  visibility: visible;
  position: absolute;
  left: 0;
}


/* =========================
   9. HIDE ELEMENTS
========================= */
#product_promtoions_container,
.featured_blog,
.browse_count,
.featured_blog_title,
.details_top,
.footer_copyright a,
#featured,
#recent_products,
#popular_products,
.details_info_condition,
.blog_published,
.offers_title,
.browse_sort,
.browse_subcategories_title,
.featured_title,
.new_title,
.details_info_bulk,
.details_description_title,
div#trustpilot-gtm-floating-wrapper {
  display: none !important;
}


/* =========================
   10. HEADER BACKGROUND
========================= */
.header2 {
  background: #dadada
    url("https://cdn.freewebstore.com/origin/13244/6_millions_scans_30000_customers_25_years_expertise_v2_200925_1758393075237.png")
    no-repeat;
  background-size: 280px;
  background-position: calc(50% + 300px) center;
  margin: 0 auto;
}


/* =========================
   11. DESKTOP HOVERS
========================= */
@media (min-width: 768px) {
  #categories a,
  .right_item a {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.2s ease, font-weight 0.2s ease;
  }

  #categories a:hover,
  .right_item a:hover {
    transform: scale(1.1);
    font-weight: bold;
  }
}


/* =========================
   12. MOBILE
========================= */
@media (max-width: 768px) {
  .mobile-hide {
    display: none;
  }

  .header2 {
    background-image: none;
  }
}

/* ===== Overall contact section spacing ===== */
.generic_content.clearfix {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

/* ===== Shared card styling for top + bottom ===== */
#ctl27_panel_address.contact_address,
#ctl27_panel_form.contact_form {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid #ececec;
    overflow: hidden;
    position: relative;
}

/* ===== Top contact card ===== */
#ctl27_panel_address.contact_address {
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 34px 42px;
}

#ctl27_panel_address.contact_address::before,
#ctl27_panel_form.contact_form::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #520050, #520050);
    border-radius: 22px 0 0 22px;
}

/* Title in top block */
#ctl27_panel_address h1 {
    margin: 0 0 24px;
    padding-bottom: 14px;
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.2;
}

/* Address text */
#divAddress {
    font-style: normal !important;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #24415c;
    font-weight: 500;
}

#divAddress a {
    color: #0d73d6;
    text-decoration: none;
    transition: color 0.2s ease;
}

#divAddress a:hover {
    color: #084f96;
    text-decoration: underline;
}

/* ===== Form card ===== */
#ctl27_panel_form.contact_form {
    max-width: 1100px;
    margin: 0 auto;
    padding: 34px 42px 28px;
}

/* form section header */
#ctl27_panel_form .contact_notify header {
    display: block;
    margin: 0 0 24px;
    padding-bottom: 14px;
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.2;
}

/* labels */
#ctl27_panel_form .contact_notify label {
    display: block;
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
}

/* text inputs + textarea */
#ctl27_panel_form input[type="text"],
#ctl27_panel_form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9e1ea;
    background: #f8fbfe;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    color: #1d1d1f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-bottom: 18px;
}

/* smaller width for first 3 inputs */
#ctl27_panel_form input[type="text"] {
    max-width: 380px;
}

/* message box */
#ctl27_panel_form textarea {
    min-height: 220px;
    resize: vertical;
}

/* focus states */
#ctl27_panel_form input[type="text"]:focus,
#ctl27_panel_form textarea:focus {
    background: #fff;
    border-color: #0d73d6;
    box-shadow: 0 0 0 4px rgba(13, 115, 214, 0.12);
}

/* validation/error text */
#ctl27_panel_form .fb_error_item {
    margin: -10px 0 14px;
    font-size: 0.92rem;
    color: #c0392b;
    font-weight: 500;
}

/* clear old spacer breaks a bit */
#ctl27_panel_form br {
    line-height: 0;
}

/* ===== Buttons / action links ===== */
#ctl27_panel_form div[style*="float:left"],
#ctl27_panel_form div[style*="float:right"] {
    margin-top: 8px;
}

/* Style buttons/links inside action areas */
#ctl27_panel_form div[style*="float:left"] a,
#ctl27_panel_form div[style*="float:left"] button,
#ctl27_panel_form div[style*="float:left"] input[type="submit"],
#ctl27_panel_form div[style*="float:right"] a,
#ctl27_panel_form div[style*="float:right"] button,
#ctl27_panel_form div[style*="float:right"] input[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* cancel */
#ctl27_panel_form div[style*="float:left"] a,
#ctl27_panel_form div[style*="float:left"] button,
#ctl27_panel_form div[style*="float:left"] input[type="submit"] {
    background: transparent;
    color: #6a2a73;
    border-color: rgba(106, 42, 115, 0.18);
}

#ctl27_panel_form div[style*="float:left"] a:hover,
#ctl27_panel_form div[style*="float:left"] button:hover,
#ctl27_panel_form div[style*="float:left"] input[type="submit"]:hover {
    background: rgba(106, 42, 115, 0.06);
}

/* send */
#ctl27_panel_form div[style*="float:right"] a,
#ctl27_panel_form div[style*="float:right"] button,
#ctl27_panel_form div[style*="float:right"] input[type="submit"] {
    background: linear-gradient(135deg, #0d73d6, #0a5eb0);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 115, 214, 0.2);
}

#ctl27_panel_form div[style*="float:right"] a:hover,
#ctl27_panel_form div[style*="float:right"] button:hover,
#ctl27_panel_form div[style*="float:right"] input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(13, 115, 214, 0.26);
}

/* ===== Optional nicer placeholder styling ===== */
#ctl27_panel_form input::placeholder,
#ctl27_panel_form textarea::placeholder {
    color: #8d99a6;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .generic_content.clearfix {
        padding: 0 14px;
        margin: 24px auto 40px;
    }

    #ctl27_panel_address.contact_address,
    #ctl27_panel_form.contact_form {
        padding: 24px 20px;
        border-radius: 18px;
    }

    #ctl27_panel_address.contact_address::before,
    #ctl27_panel_form.contact_form::before {
        width: 4px;
        border-radius: 18px 0 0 18px;
    }

    #ctl27_panel_address h1,
    #ctl27_panel_form .contact_notify header {
        font-size: 1.65rem;
    }

    #ctl27_panel_form input[type="text"] {
        max-width: 100%;
    }

    #ctl27_panel_form div[style*="float:left"],
    #ctl27_panel_form div[style*="float:right"] {
        float: none !important;
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    #ctl27_panel_form div[style*="float:left"] a,
    #ctl27_panel_form div[style*="float:left"] button,
    #ctl27_panel_form div[style*="float:left"] input[type="submit"],
    #ctl27_panel_form div[style*="float:right"] a,
    #ctl27_panel_form div[style*="float:right"] button,
    #ctl27_panel_form div[style*="float:right"] input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}