/* ============================================================
   Oliver Custom Forms - Replacing Marketo Embedded Forms
   Matches live oliver.com.au form styling
   ============================================================ */

/* Form Container */
.oliver-custom-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Contact Form Wrapper - two-column layout */
.contact-us-form-wrapper {
    margin: 0;
    padding: 0;
}

.contact-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form-left {
    flex: 0 0 60%;
    max-width: 60%;
}

.contact-form-right {
    flex: 0 0 35%;
    max-width: 35%;
}

/* Form Title - Professional uppercase with underline (matches live Marketo styling) */
.contact-form-title,
.contact-details-title {
    font-family: 'anton-regular', 'robotocondensed-bold', sans-serif;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 0;
    padding-bottom: 12px;
    color: #1A1A1A;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #d9d9d9;
}

/* Blog page context - title with more spacing */
.post-view-modern .contact-form-title {
    margin-top: 30px;
    margin-bottom: 20px;
}

.contact-form-title .title-bold,
.contact-details-title .title-bold {
    font-weight: 700;
}

.contact-form-title .title-regular,
.contact-details-title .title-regular {
    font-weight: 400;
}

/* Form Fields Wrapper */
.oliver-custom-form .form-fields-wrapper {
    width: 100%;
    padding-top: 15px;
}

/* Form Row - 2 columns on desktop */
.oliver-custom-form .form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.oliver-custom-form .form-row .form-field {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.oliver-custom-form .form-row-full .form-field {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Labels - Professional Marketo-matching style */
.oliver-custom-form .label {
    display: block;
    margin: 4px 0 5px;
    font-family: 'robotocondensed-bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 18px;
}

.oliver-custom-form .field.required>.label span:before {
    content: '* ';
    color: #e02b27;
}

/* Inputs - Clean live-site appearance */
.oliver-custom-form .input-text,
.oliver-custom-form select,
.oliver-custom-form textarea {
    padding: 8px 10px;
    margin-bottom: 0;
    border: 1px solid #ccc;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'robotocondensed-regular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #1A1A1A;
    background: #fff;
    transition: border-color 0.3s ease;
    height: 38px;
}

.oliver-custom-form select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
}

.oliver-custom-form .input-text:focus,
.oliver-custom-form select:focus,
.oliver-custom-form textarea:focus {
    border-color: #e8a900;
    outline: none;
    box-shadow: 0 0 0 1px #e8a900;
}

.oliver-custom-form textarea {
    resize: vertical;
    min-height: 90px;
    height: auto;
}

/* Consent / Opt-In Block */
.oliver-custom-form .consent-block {
    padding-top: 8px;
}

.oliver-custom-form .consent-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.oliver-custom-form .consent-checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.oliver-custom-form .consent-label {
    font-family: 'robotocondensed-regular', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.oliver-custom-form .consent-text {
    font-family: 'robotocondensed-regular', sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #333;
    margin: 0;
}

.oliver-custom-form .consent-text a {
    color: #e8a900;
    text-decoration: underline;
}

.oliver-custom-form .consent-text a:hover {
    color: #c58b00;
}

/* Condition block (download form opt-in checkbox) */
.oliver-custom-form .condition-block {
    padding-top: 5px;
}

.oliver-custom-form .condition-block .control {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.oliver-custom-form .condition-block input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.oliver-custom-form .condition-block .label {
    display: inline;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #333;
    cursor: pointer;
}

/* Submit Button - Golden Oliver branding style */
.oliver-custom-form .actions-toolbar {
    margin-top: 18px;
}

.oliver-custom-form .action.submit.primary {
    width: 280px;
    color: #000000;
    font-family: 'robotocondensed-bold', sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    font-size: 1.4rem;
    background: #ffc423;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0px 0px #94400c;
    border-radius: 0;
    border: none;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
}

.oliver-custom-form .action.submit.primary:hover {
    background: #000000;
    color: #ffc423;
}

.oliver-custom-form .action.submit.primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Form Messages */
.oliver-custom-form .form-messages {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 0;
    font-size: 14px;
    line-height: 20px;
}

.oliver-custom-form .form-messages.success-message {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.oliver-custom-form .form-messages.error-message {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Validation Error */
.oliver-custom-form .mage-error {
    color: #e02b27;
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================================
   Contact Details Sidebar
   ============================================================ */

.contact-details-list {
    margin-top: 10px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #ffc423;
    flex-shrink: 0;
}

.contact-icon:before {
    font-size: 18px;
    color: #1A1A1A;
}

.contact-icon-address:before {
    content: '\1F3E0';
}

.contact-icon-phone:before {
    content: '\1F4DE';
}

.contact-icon-email:before {
    content: '\2709';
}

.contact-text {
    font-family: 'robotocondensed-regular', sans-serif;
    font-size: 14px;
    line-height: 18px;
    color: #1A1A1A;
}

a.contact-text:hover {
    color: #e8a900;
    text-decoration: none;
}

/* ============================================================
   Download Popup Form
   ============================================================ */

.popup-blog-form {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-blog-form .popup-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 25px 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 0;
    position: relative;
}

.popup-blog-form h2 {
    margin-top: 0 !important;
    margin-left: 10px !important;
    color: #1A1A1A;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    text-transform: uppercase;
    font-family: 'anton-regular', sans-serif;
}

.popup-blog-form .close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #000000 !important;
    font-size: 28px;
    font-weight: bold;
    opacity: 1;
    cursor: pointer;
    z-index: 1;
}

.popup-blog-form .close:hover {
    color: #ffc423 !important;
    text-decoration: none;
}

.popup-blog-form .oliver-custom-form .action.submit.primary {
    width: 280px;
}

/* ============================================================
   Inline Download Form (Blog post content area)
   ============================================================ */

.oliver-download-form-inline {
    max-width: 100%;
    margin: 25px 0 10px 0;
    padding: 0;
}

.oliver-download-form-inline .inline-form-content {
    width: 100%;
}

.oliver-download-form-inline h2 {
    font-family: 'anton-regular', 'robotocondensed-bold', sans-serif;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 0;
    padding-bottom: 12px;
    color: #1A1A1A;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #d9d9d9;
}

/* ============================================================
   Responsive / Mobile
   ============================================================ */

@media (max-width: 768px) {
    .contact-form-container {
        flex-direction: column;
    }

    .contact-form-left,
    .contact-form-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .oliver-custom-form .form-row .form-field {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .oliver-custom-form .action.submit.primary {
        width: 100%;
    }

    .popup-blog-form .popup-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }

    .popup-blog-form h2 {
        font-size: 18px;
        margin-left: 0 !important;
    }

    .post-view-modern .contact-form-title {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .oliver-custom-form .label {
        font-size: 12px;
    }

    .oliver-custom-form .input-text,
    .oliver-custom-form select,
    .oliver-custom-form textarea {
        padding: 6px 8px;
        font-size: 13px;
    }

    .popup-blog-form .popup-content {
        padding: 10px;
    }

    .contact-details-title {
        font-size: 18px;
    }
}