/*!
 * Theme Name: 		   OceanWP
 * Text Domain: 	   oceanwp
 * Version:            4.1.4
 * Tested up to:       6.9
 * Requires at least:  5.6
 * Requires PHP:       7.4
 * Author:             OceanWP
 * Author URI:         https://oceanwp.org/about-oceanwp/
 * Theme URI:          https://oceanwp.org/
 * Description:        OceanWP is the perfect theme for your project. Lightweight and highly extendable, it will enable you to create almost any type of website such a blog, portfolio, business website and WooCommerce storefront with a beautiful & professional design. Very fast, responsive, RTL & translation ready, best SEO practices, unique WooCommerce features to increase conversion and much more. You can even edit the settings on tablet & mobile so your site looks good on every device. Work with the most popular page builders as Elementor, Beaver Builder, Brizy, Visual Composer, Divi, SiteOrigin, etc... Developers will love his extensible codebase making it a joy to customize and extend. Best friend of Elementor & WooCommerce. Looking for a Multi-Purpose theme? Look no further! Check the demos to realize that it's the only theme you will ever need: https://oceanwp.org/demos/
 * Tags:               two-columns, right-sidebar, footer-widgets, blog, news, custom-background, custom-menu, post-formats, rtl-language-support, sticky-post, editor-style, threaded-comments, translation-ready, buddypress, custom-colors, featured-images, full-width-template, theme-options, e-commerce, block-styles, wide-blocks, accessibility-ready
 *
 * License: GNU General Public License v2.0 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 *
 * All files, unless otherwise stated, are released under the GNU General Public
 * License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

 * This theme, like WordPress, is licensed under the GPL.
 * Use it to make something cool, have fun, and share what you've learned
 * with others.
 *
 * DO NOT ADD YOUR CSS TO THIS FILE - IT WILL BE LOST
 * To add your own CSS, use a child theme: https://github.com/oceanwp/oceanwp-child-theme
 *
 * CSS file is in "assets/css"
 */
/* Modern Contact Form Wrapper */
.modern-contact .wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* spacing between fields */
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

/* Half-width fields */
.modern-contact .wpcf7-form p:nth-child(1),
.modern-contact .wpcf7-form p:nth-child(2),
.modern-contact .wpcf7-form p:nth-child(3),
.modern-contact .wpcf7-form p:nth-child(4) {
    flex: 1 1 calc(50% - 7.5px); /* two columns */
}

/* Textarea full width */
.modern-contact .wpcf7-form p:nth-child(5) {
    flex: 1 1 100%;
}

/* Submit button full width */
.modern-contact .wpcf7-form p:nth-child(6) {
    flex: 1 1 100%;
}

/* Modern styling for inputs and textarea */
.modern-contact .wpcf7-form input,
.modern-contact .wpcf7-form textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

/* Focus effect */
.modern-contact .wpcf7-form input:focus,
.modern-contact .wpcf7-form textarea:focus {
    border-color: #0D0A46;
    box-shadow: 0 3px 7px rgba(13,10,70,0.15);
}

/* Submit button style */
.modern-contact .wpcf7-form input.wpcf7-submit {
    width: 100% !important;  /* force full width */
    padding: 12px 25px;
    background: linear-gradient(135deg, #0D0A46, #3A337F);
    color: #fff;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;           /* ensure block layout */
}
/* Button hover effect */
.modern-contact .wpcf7-form input.wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13,10,70,0.3);
}

/* Responsive: stack columns on mobile */
@media (max-width: 767px) {
    .modern-contact .wpcf7-form p:nth-child(1),
    .modern-contact .wpcf7-form p:nth-child(2),
    .modern-contact .wpcf7-form p:nth-child(3),
    .modern-contact .wpcf7-form p:nth-child(4),
    .modern-contact .wpcf7-form p:nth-child(5),
    .modern-contact .wpcf7-form p:nth-child(6) {
        flex: 1 1 100%;
    }
}
