/* static/css/style.css */

/* 1. Base State: Make the image slightly smaller and fully transparent */
/* We target the <img> inside the carousel item */
.carousel-item img {
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
  transform: scale(1.05); /* Slightly zoomed in */
  opacity: 0.5;
}

/* 2. Active State: When the item becomes active (visible), revert to normal */
.carousel-item.active img {
  transform: scale(1); /* Normal size */
  opacity: 1; /* Fully opaque */
}

/* 3. Improve height handling (Optional but Recommended) */
/* This prevents the height from collapsing if you don't have enough images */
.carousel-inner {
  max-height: 500px; /* Adjust as needed for your design */
}

.carousel-item {
  height: 500px; /* Match the inner height */
  overflow: hidden; /* Ensure images don't spill out */
}

.carousel-item h1 {
  color: #fff;
  border: none;
 /* Red: 255, Green: 0, Blue: 0. Alpha: 0.2 */
  background-color: rgba(0, 0, 0, 0.2);
}

.carousel-item img {
  /* Ensures the image fills the space and maintains aspect ratio */
  object-fit: cover;
  width: 100%;
  height: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
}

th,
td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #3498db;
  color: white;
  font-weight: bold;
}
/*
tr:nth-child(even) {
  background-color: #f2f2f2;
}
*/
ul {
  padding-left: 20px;
  margin: 0;
}

li {
  margin-bottom: 5px;
}

/*
h1,
h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}
  */
/* In your CSS file */
.service {
  background-color: #fff;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service h2 {
  color: #333;
}

.service p {
  color: #555;
}

.benefits {
  list-style-type: none;
  padding: 0;
}

.benefits li {
  margin: 5px 0;
}

.benefits li::before {
  content: "✔️";
  margin-right: 10px;
  color: green;
}

.no-pointer {
  cursor: default !important;
}
.responsive-btn {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.painting_mistakes h1 {
  text-align: center;
  color: #b00000;
}

.painting_mistakes h2 {
  color: #333;
  border-bottom: 2px solid #b00000;
  padding-bottom: 8px;
}

.painting_mistakes ol {
  padding-left: 20px;
}

.painting_mistakes li {
  margin-bottom: 18px;
}

.painting_mistakes strong {
  color: #b00000;
}
.painting_mistakes .bonus {
  background: #fff3f3;
  padding: 20px;
  border-left: 6px solid #b00000;
  margin-top: 40px;
}

.painting_mistakes .bonus h2 {
  border: none;
  margin-top: 0;
}
/* Targeting the required labels */
.required-field::after {
  content: " *"; /* Add the asterisk */
  color: red; /* Make the asterisk red */
  font-weight: bold; /* Optional: make the asterisk bold */
}

/* Apply wrapper only on extra-small screens */
.border-wrapper {
  border: 1px solid grey;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: var(--bg-color-box);
}
.notes-box {
  height: 100px !important;
  resize: vertical; /* allow vertical resize only */
}
.asteriskField {
  color: red !important;
  font-weight: bold;
}

.hero-section {
    background-image: url("/static/images/logo_new.png");
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    position: relative;
    z-index: 2;
}


.sliding-button-container {
    position: fixed;
    left: 50%;
    top: 50%;
    /* Start by centering the container, then let the animation move the content */
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.transition-button {
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    
    /* Apply the 10s animation loop */
    animation: hidden-top-center 13s infinite;
}

@keyframes hidden-top-center {
    /* 0% to 60% (First 6 seconds): Completely invisible and off-screen at the top */
    0%, 40% {
        opacity: 0;
        transform: translateY(-200px); /* Start above the viewport */
        pointer-events: none; /* Prevent clicks while hidden */
    }

    /* 45% (Start of the 4-second window): Fade in while moving */
    45% {
        opacity: 1;
    }

    /* 80% (Middle of transition): Settled in the center */
    85% {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* 100% (End of 10s cycle): Fade out or snap back */
    100% {
        opacity: 0;
        transform: translateY(200px); /* Slide out the bottom or change as desired */
    }
}
.transition-link {
    /* CRITICAL: Links need this to move correctly */
    display: inline-block; 
    
    /* Styling to make it look like a button */
    padding: 12px 24px;
    background-color: hsl(337, 79%, 51%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 24px; 
    font-weight: 800; /* Extra bold for emphasis */

    /* Apply the exact same animation as the button */
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1000;
    animation: hidden-top-center 10s infinite;
}

@keyframes hidden-top-center {
    0%, 30% {
        opacity: 0;
        transform: translate(-50%, -450%); /* Stay centered horizontally, but high up */
        pointer-events: none;
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%); /* Perfect center */
        pointer-events: auto;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 150%); /* Slide out the bottom */
    }
}
.notification {
  padding: 12px 24px;
  background-color: hsl(118, 92%, 48%);
  color: white;
  text-decoration: double;
  border-radius: 25px;
  font-size: 24px;
}