/* 
Theme Name: CreateTheWeb WordPress Design
Theme URI: https://www.createtheweb.co.uk/
Description: Bespoke WordPress website design by CreateTheWeb.co.uk
Author: CreateTheWeb
Author URI: https://www.createtheweb.co.uk/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU CreateTheWeb Bespoke WordPress Developments
License URI: https://www.createtheweb.co.uk/
Tags: createtheweb, bespoke
*/

/*
    Add your custom styles here
*/
/* Remove default green background */
.woocommerce-message {
  background: #f1f5f7 !important;
  border-left: 4px solid #1C3390 !important;
  color: #1C3390 !important;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none !important;
}

/* Button inside Woo notice */
.woocommerce-message .button.wc-forward {
  background-color: #1C3390 !important;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s ease;
  margin-left: auto;
  white-space: nowrap;
}

.woocommerce-message .button.wc-forward:hover {
  background-color: #142673 !important;
  opacity: 0.95;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Remove top green bar (legacy Woo style) */
.woocommerce-message::before {
  display: none !important;
}

/* Woo notice wrapper spacing */
.woocommerce-notices-wrapper {
  margin: 20px;
}
.woocommerce-message {
	border: none!important;
}

.ctw-fix-bg {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-attachment: scroll !important;
}

/* General form wrapper */
body .gform_wrapper {
  max-width: 600px;
  margin: 0 auto;
  font-size: 15px;
  color: #1C3390;
}

/* Field group spacing */
body .gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Input, select, and textarea styling */
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="number"],
body .gform_wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 14px;
  transition: border 0.2s ease;
  box-shadow: none;
  outline: none;
  color: #1C3390;
}

/* Focus styling */
body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
  border-color: #1C3390;
}

/* Label styling */
body .gform_wrapper .gfield_label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #000000;
}
/* Global button styling for Gravity Forms */
body .gform_wrapper input[type="submit"],
body .gform_wrapper .gform_button,
body .gform_wrapper .gform_next_button,
body .gform_wrapper .gform_previous_button,
body .gform_wrapper .gform_page_footer input[type="button"],
body .gform_wrapper .gform_footer input[type="button"] {
  background-color: #1C3390 !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 9999px !important;
  font-size: 15px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  display: inline-block !important;
  white-space: nowrap;
  box-shadow: none !important;
}

/* Button hover effect */
body .gform_wrapper input[type="submit"]:hover,
body .gform_wrapper .gform_button:hover,
body .gform_wrapper .gform_next_button:hover,
body .gform_wrapper .gform_previous_button:hover,
body .gform_wrapper .gform_footer input[type="button"]:hover {
  background-color: #142673 !important;
  opacity: 0.95;
}

/* Footer spacing */
body .gform_wrapper .gform_footer {
  margin-top: 30px;
}

/* Gravity Forms placeholder styling */
body .gform_wrapper ::placeholder {
  color: rgba(0, 0, 0, 0.5); /* black with 50% opacity */
  opacity: 1; /* ensure consistent cross-browser behaviour */
  font-weight: 400;
}

/* Radio and checkbox colour */
body .gform_wrapper input[type="radio"],
body .gform_wrapper input[type="checkbox"] {
  accent-color: #1C3390;
}

/* Add spacing between label and required asterisk */
body .gform_wrapper .gfield_label .gfield_required {
  margin-left: 6px;
  color: red; /* Optional: keep Woo-style red */
  font-weight: normal;
}

/* Force visible text inside all dropdowns */
body .gform_wrapper select,
body .gform_wrapper select option {
  color: #1C3390 !important;
  background-color: #ffffff !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 14px;
  transition: border 0.2s ease;
  box-shadow: none;
  outline: none;
  color: #1C3390;
}

/* Additional fallback to make sure nothing is inherited badly */
body .gform_wrapper .gfield select:focus,
body .gform_wrapper .gfield select:active {
  color: #1C3390 !important;
  background-color: #ffffff !important;
}

/* Fix for Safari/WebKit where select text might vanish */
body .gform_wrapper .gfield select {
  -webkit-text-fill-color: #1C3390 !important;
}

/* Password input styling */
body .gform_wrapper input[type="password"] {
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #1C3390 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Placeholder styling for password fields */
body .gform_wrapper input[type="password"]::placeholder {
  color: rgba(28, 51, 144, 0.6) !important;
  opacity: 1 !important;
}



.gfur-activation-message {
  background: #f1f5f7;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #1C3390;
  margin-top: 30px;
}

.gfur-activation-message a {
  color: #1C3390;
  text-decoration: underline;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Make sure the swiper wrapper behaves properly */
.elementor-slides-wrapper {
  position: relative;
}

/* Force pagination bullets to centre */
/* Force pagination bullets to centre inside any Elementor swiper */
.swiper-container,
.elementor-swiper,
.elementor-swiper .swiper,
.elementor-swiper .swiper-container {
  text-align: center !important;
}
/* Center the swiper pagination bullets */
.elementor-swiper .swiper-pagination {
  position: relative !important;
  text-align: center !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  left: 0 !important;
}

/* Optionally, tweak bullet spacing */
.elementor-swiper .swiper-pagination-bullet {
  margin: 0 4px !important;
}

.ctw-gallery {
    width: 100%;
}

.ctw-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.ctw-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.ctw-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctw-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

/* Thumbnails */
.ctw-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ctw-thumb {
    all: unset;
    cursor: pointer;
    opacity: 0.6;
}

.ctw-thumb.active {
    opacity: 1;
}

.ctw-thumb img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Preview placeholder */
.ctw-gallery-placeholder {
    padding: 12px;
    border: 1px dashed #ccc;
    font-size: 14px;
}

/* Thumbnail default border */
.ctw-thumb img {
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
}

/* Thumbnail hover and active state */
.ctw-thumb:hover img,
.ctw-thumb.active img {
    border: 2px solid #1C3390;
	background-color: #ffffff;
}

/* Main image border */
.ctw-main {
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
	border-radius: 15px;
}

.ctw-thumb img {
    transition: border-color 0.2s ease;
}

.woocommerce-variation-price {
    display: none;
}