/* Import MailerLite's base styles first */
@import url("https://assets.mlcdn.com/fonts.css?version=1756813");

/* =============================================================
   CUSTOM BRAND STYLES FOR MAILERLITE FORM
   ============================================================= */

/* General form styling */
#mlb2-30577840 .ml-form-embedWrapper {
    background-color: transparent !important; /* Make wrapper transparent */
    border: none !important;
    padding-top: 24px;
}

#mlb2-30577840 .ml-form-embedContent h2,
#mlb2-30577840 .ml-form-embedContent p,
#mlb2-30577840 .ml-form-successBody h4,
#mlb2-30577840 .ml-form-successBody p {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Style the input fields and select dropdown */
#mlb2-30577840 .form-control, 
#mlb2-30577840 .custom-select {
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #d9d4f5 !important;
    padding: 0 16px !important;
    font-size: 1rem !important;
    font-family: 'Open Sans', sans-serif !important;
    box-sizing: border-box !important;
    color: #2E1E4D !important;
}

/* Style the submit button */
#mlb2-30577840 .ml-form-embedSubmit button {
    width: 100% !important;
    background-color: #6A5CA8 !important; /* Calm Violet */
    box-sizing: border-box !important;
    height: 48px !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 48px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: bold !important;
    transition: background-color 0.2s ease-in-out !important;
}

#mlb2-30577840 .ml-form-embedSubmit button:hover {
    background-color: #8776F9 !important; /* Vibrant Purple */
}

/* =============================================================
   HORIZONTAL FORM LAYOUT FOR DESKTOP
   ============================================================= */

@media (min-width: 768px) {
    /* Target the container for the form fields */
    #mlb2-30577840 .ml-form-formContent {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
        justify-content: center;
    }
    
    #mlb2-30577840 .ml-form-fieldRow {
        flex-grow: 1; /* Allow fields to grow */
    }

    #mlb2-30577840 .ml-form-embedSubmit {
        flex-shrink: 0; /* Prevent button from shrinking */
    }

    /* Adjust the main form container to align everything */
    #mlb2-30577840 .ml-block-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    #mlb2-30577840 .ml-form-embedSubmit button {
        width: 220px !important; 
    }
}

