/*
Theme Name: Coming Soon Theme
Author: Your Name
Description: A modern coming soon WordPress theme with countdown timer, video background, and subscription form.
Version: 1.1
*/

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure consistent font size with rem units */
html {
    font-size: 16px; /* 1rem = 16px */
}

/* Body and Main Container */
body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    text-align: center;
    min-height: 100vh; /* Prevent cutting off content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Background Video */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Main Content */
.countdown-timer-container {
    z-index: 2;
    max-width: 1920px;
    padding: 20px;
}

/* Title and Subtitle */
h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Countdown Timer */
.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.timer div {
    text-align: center;
}

.timer .number {
	font-family: 'Doto', serif;
    font-size: clamp(6rem, 10vw, 12rem); /* Responsive font size */
    font-weight: bold;
    color: #00e6ff;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 15px; /* Rounded corners */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    color: #fff; /* Text color */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
}

.timer span {
    display: block;
    font-size: 10rem;
    color: #ccc;
}

/* Footer */
footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    color: #ddd;
    font-size: 0.9rem;
    /*z-index: 10; /* Ensure it's always on top */
}

footer p {
    margin: 0;
}

footer a {
    color: #00e6ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* General Form Styling */
.wpcf7-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Labels */
.wpcf7-form label {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff; /* Dark Gray for readability */
    margin-bottom: 5px;
    display: block;
}

/* Input Fields */
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem; /* Use rem units for consistent sizing */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.5);
    outline: none;
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #0073e6;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Placeholder Text */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #999;
}

/* Error Messages */
.wpcf7-response-output {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 1rem;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
}

.wpcf7-not-valid-tip {
    color: #e3342f;
    font-size: 1rem;
    margin-top: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 4rem;
    }

    .timer .number {
        font-size: 6rem;
    }

    .wpcf7-form {
        padding: 15px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .timer {
        flex-direction: column;
        gap: 10px;
    }

    .wpcf7 input[type="submit"] {
        font-size: 14px;
    }

    footer {
        font-size: 0.8rem;
    }
}

/* Accessibility: Focus Styles */
a:focus, button:focus, input:focus {
    outline: 2px solid #4D90FE;
    outline-offset: 2px;
}
