/* ==========================================================================
   Top One Percent Landing Plugin - Main Stylesheet
   ========================================================================== */

/* 1. Main Wrapper 
   Removed min-height and background to prevent "double spacing" in columns
*/
.top-one-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    padding: 0; 
    margin: 0;
    width: 100%;
    background: transparent;
    display: block; /* Standard block flow for column compatibility */
}

/* 2. Hero Typography Section */
.top-one-hero {
    text-align: left; /* Align title and subtitle to the left */
    max-width: 100%;
    margin: 0; 
}

.top-one-hero h1 {
    color: #8F9779; /* Primary Brand Color */
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px 0; /* Tightened vertical gaps */
    line-height: 1.15;
}

.top-one-hero p {
    font-size: 20px;
    max-width: 650px;
    margin: 0 0 35px 0; /* Space between subtitle and button */
    line-height: 1.6;
    color: #555;
}

/* 3. Buttons & Actions */
.top-one-btn {
    background-color: #8F9779;
    color: #FFFFFF !important;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.top-one-btn:hover {
    background-color: #788266; /* Hover State Color */
    transform: translateY(-2px);
}

/* 4. Modal System (Bulletproof Hide) */
.top-one-modal-overlay {
    display: none !important; /* Managed via JS to prevent flickering */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.top-one-modal-content {
    background: #FFFFFF; /* Card Background */
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: topOneFadeIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #8F9779;
    cursor: pointer;
}

/* 5. Form Elements (Shared) */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: #FAFAFA;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: #8F9779;
    outline: none;
    background: #FFFFFF;
}

/* 6. Contact Form Card */
.top-one-form-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.contact-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 7. Mobile Adjustments */
@media (max-width: 768px) {
    .top-one-hero h1 {
        font-size: 34px;
    }
    
    .top-one-hero p {
        font-size: 18px;
    }
    
    .top-one-modal-content {
        padding: 30px 20px;
    }
}