@font-face {
    font-family: 'Montserrat-Bold';
    src: url('fonts/Montserrat-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('fonts/Montserrat-Regular.ttf');
    font-weight: bold;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    background-color: #FFECF2;
    flex: 1;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
}

video {
    border-radius: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.body-background-wrapper {
    background-color: #FFECF2;
}

.responsive-image {
    height: auto;
    max-width: 100%;
    display: block;
}

.about-us-container {
    background-color: black;
    color: white;
    width: 70%;
    border-radius: 1rem;
    padding: 1rem;
    margin: 2rem auto;
}

.div-website-title {
    background-color: white;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.website-title {
    font-size: 2rem;
    margin: 0;
    padding: 1rem;
}

.website-title a {
    text-decoration: none !important; 
    color: black !important;
}

.bold-font {
    font-family: 'Montserrat-Bold'
}

.regular-font {
    font-family: 'Montserrat-Regular'
}

.price-option {
    font-size: 1.25rem;
    margin: 0;
}

.iphone-img {
    width: 20rem;
    height: 35rem;
    object-fit: cover;
}

.img-float-left {
    float: left;
}

.img-float-right {
    float: right;
}

.img-message-div {
    display: flex;
    align-items: center;
    margin: 20px;
    padding: 10px;
    max-width: 800px;
}

.text {
    flex: 1;
}

.reason-header {
    font-family: 'Montserrat-Bold'
}

.styled-table {
    width: 95%;
    border-collapse: separate;
    border-spacing: 0; /* removes gaps between cells */
    font-family: 'Montserrat-Regular';
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    border-radius: 1rem;
}

.styled-table th,
.styled-table td {
    width: 50%;
    border: 0.20em solid white;
    padding: 0.25rem;
    margin: 0;
    text-align: center;
}

/* Rounded corners on outer cells */
.top-left {
    border-top-left-radius: 1rem;
}

.top-right {
    border-top-right-radius: 1rem;
}

.bottom-left {
    border-bottom-left-radius: 1rem;
}

.bottom-right {
    border-bottom-right-radius: 1rem;
}

.download-button {
    width: 15rem;
    margin: 0;
    display: block;
}

.about-us-img {
    width: 50%;
    height: 50%;
    margin: 1rem;
    border-radius: 1rem;
}

.chat-bubble {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    font-family: 'Montserrat-Regular';
    font-size: 1rem;
    color: #333;
    margin: 1rem auto;
}
  
/* Bubble tail at top left */
.chat-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: white;
    border-top: 0;
    margin-left: -10px;
    margin-top: -10px;
}

.chat-bubble-2 {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    font-family: 'Montserrat-Regular';
    font-size: 1rem;
    color: #333;
    margin: 1rem auto;
}

  /* Tail at the top right */
.chat-bubble-2::after {
    content: '';
    position: absolute;
    top: 0;
    right: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: white;
    border-top: 0;
    margin-right: -10px;
    margin-top: -10px;
  }

.chat-bubble-name-right {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem;
    color: black;
    font-size: 1rem;
}

/* Stick header to top left */
.chat-bubble-name-left {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0.5rem;
    color: black;
    font-size: 1rem;
}

.chat-bubble-container {
    position: relative; /* Needed to position header inside */
    width: 50%;
    padding: 1rem;
    margin: 0 auto;
}

/* Form container */
#contactForm {
    max-width: 75%;
    margin: 50px auto;
    padding: 5rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Inputs, textarea, and select */
#contactForm input,
#contactForm textarea,
#contactForm select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

/* Focus styles */
#contactForm input:focus,
#contactForm textarea:focus,
#contactForm select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
    outline: none;
}

/* Textarea height */
#contactForm textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
#contactForm button {
    width: 100%;
    background-color: #FFECF2;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Button hover */
#contactForm button:hover {
    background-color: #D988A0;
}

.img-wrapper {
    position: relative;
    display: inline-block; /* So it fits the image size */
}
  
.img-wrapper img {
    display: block;
}

.app-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    margin: 1rem;
}
  
.img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    /* Optional: visually hidden but clickable */
    background-color: rgba(0, 0, 0, 0); /* Transparent hit area */
    z-index: 2;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: -10px;
}

.footer-container {
    background-color: white;
    margin: 0 auto;
    font-family: 'Montserrat-Regular';
    width: 100%;
    padding: 0 0 1rem 0;
}

.copyright-text {
    margin: 1rem 0 0 0;
}

/* Add borders selectively */
tr:not(:last-child) td {
    border-bottom: 0.1em solid white;
}
td:not(:last-child) {
    border-right: 0.1em solid white;
}

/* slider */
.slider-container {
    width: 300px;
    margin: auto;
    font-family: 'Montserrat-Regular';
    margin: 2rem auto;
}

.labels {
    display: flex;
    justify-content: space-between;
    padding: 0 8px; /* slight padding to center better */
    font-size: 14px;
    margin: 0.5rem;
}

.labels span {
    width: 25%;
    text-align: center;
    transform: translateX(2rem); /* adjust label centering under thumb */
}

.newsletter-message-div {
    width: 50%;
    text-align: left;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 1rem;
    display: flex;
    gap: 15px; /* space between icons */
    justify-content: center;
}
  
.social-links li {
    display: inline;
}
  
.social-links a {
    font-size: 24px;
    color: #333;  /* default color */
    text-decoration: none;
    transition: color 0.3s ease;
}
  
.social-links a:hover {
    color: #0073e6; /* change color on hover */
}

#email {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

#email:focus {
    border-color: #FFECF2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

#newsletterForm {
    width: 90%;
}

#signup-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: black;
    background-color: #FFECF2; /* Matches input focus color */
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 12px;
}

#signup-btn:hover {
    background-color: #FFECF2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#signup-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* makes list items line up horizontally */
    gap: 20px;     /* spacing between links */
    justify-content: center;  /* centers horizontally */
  }
  
  .nav li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }

  input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ffe6f0, black);
    outline: none;
  }

  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  }

  input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4da6;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  }

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .img-message-div {
        flex-direction: column;
        background-color: white;
        border-radius: 1rem;
    }

    .about-us-img {
        width: 80%;
    }

    .chat-bubble-container {
        width: 80%;
    }

    .main-h1-header {
        font-size: 1rem;
    }

    .responsive-image {
        width: 100%;
    }
    
    .newsletter-message-div {
        width: 90%;
    }

    /* Form container */
    #contactForm {
        max-width: 50%;
        margin: 50px auto;
        padding: 5rem;
    }

}