/* Universal Box-Sizing */
*, *:before, *:after {
    box-sizing: border-box;
}


/* Base Body Styles with Animated Background */
body {
    background: rgba(10, 74, 125, 1);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: floatingBubbles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: shimmer 15s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingBubbles {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

/* Headings */
h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    background-color: white; /* This is redundant with -webkit-background-clip */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 400;
}

/* --------------- Paragraphs --------------- */

p.msp-form-width {
    max-width: 800px;
}

/* --------------- Forms --------------- */
form {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

form p.data-processing-notice {
    font-size: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form#contact_form {
    max-width: 800px;
}

form#contact_form fieldset {
    margin-bottom: 0;
}

form fieldset {
    margin-bottom: 30px;
    border: none;
}

/* ----- Form elements ----- */
form input[type="text"],
form input[type="password"],
form input[type="date"],
form input[type="datetime"],
form input[type="email"],
form input[type="number"],
form input[type="search"],
form input[type="tel"],
form input[type="time"],
form input[type="url"],
form textarea,
form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    margin-bottom: 30px; /* From original, but form-group also adds margin */
    color: #403d3d;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset; /* From original */
}

form input[type="number"] {
    padding-right: 2px; /* Specific adjustment */
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form input[type="number"]:focus,
form select:focus,
form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    appearance: none;
    cursor: pointer;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Custom scrollbar for textarea */
form textarea::-webkit-scrollbar {
    width: 8px;
}

form textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

form textarea::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

form textarea::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

form input[type="radio"],
form input[type="checkbox"] {
    margin: 0 4px 8px 0;
    width: 20px; /* From new CSS */
    height: 20px; /* From new CSS */
    margin-right: 10px; /* From new CSS */
    accent-color: #667eea; /* From new CSS */
    transform: scale(1.2); /* From new CSS */
}

/* Labels */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50; /* From new CSS */
    font-size: 0.95rem; /* From new CSS */
    transition: color 0.3s ease; /* From new CSS */
}

form label i {
    color: darkgray;
    cursor: pointer;
}

/* Required Field Indicator */
/*form label.required:after,
form .required label:after
    content: '*';
    color: red;
    font-weight: bold;
}*/

/* Button Styling */
form button,
form input[type="submit"] {
    border: none;
    font-size: var(--wp--preset--font-size--medium);
    font-family: var(--wp--preset--font-family--manrope);
    width: 100%;
    position: relative; /* For ripple effect */
    overflow: hidden; /* For ripple effect */
}

form button:active:before {
    width: 300px;
    height: 300px;
}

/* --------------- Message styles --------------- */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.notice.notice-success {
    padding: 3px 3px 3px 15px;
    margin-bottom: 30px;
    background-color: rgb(67 207 26 / 64%);
    border-radius: 8px;
}

/* --------------- Responsive ------------- */
@media (max-width: 768px) {
    form {
        margin: 10px;
        padding: 25px;
    }

    h1 {
        font-size: 2rem;
    }

    /* WordPress specific responsive navigation */
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}
