/**
 * OCM Frontend - Conversion Focused Design
 */

.ocm-dynamic-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eef2f6;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: inherit;
}

/* Title & Description */
.ocm-form-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #1a202c;
    text-align: inherit;
}

.ocm-form-desc {
    margin-bottom: 30px;
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Form Groups */
.ocm-form-group {
    margin-bottom: 20px;
}

.ocm-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.ocm-form-group input:not([type="submit"]),
.ocm-form-group select,
.ocm-form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.ocm-form-group input:focus {
    border-color: #3182ce;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* THE SUBMIT BUTTON - Fixed & Styled */
.ocm-dynamic-form-wrapper input[type="submit"],
.ocm-dynamic-form-wrapper .wpcf7-submit {
    background: var(--ocm-primary);
    color: #ffffff;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    display: block;
}

.ocm-dynamic-form-wrapper input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Disclaimer */
.ocm-form-disclaimer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #a0aec0;
    text-align: center;
}

/* --- RTL SUPPORT --- */
body.rtl .ocm-dynamic-form-wrapper,
[dir="rtl"] .ocm-dynamic-form-wrapper {
    direction: rtl;
    text-align: right;
}

body.rtl .ocm-form-group label,
[dir="rtl"] .ocm-form-group label {
    text-align: right;
}

/* --- NEW COMPONENTS: TOC, PRO-TIP, QUOTES --- */

/* Table of Contents Container */
.ocm-toc-container {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 25px;
    margin: 0 0 30px 0;
}

.ocm-toc-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ocm-toc-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ocm-toc-container li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.ocm-toc-container a {
    text-decoration: none;
    color: #3182ce;
    transition: color 0.2s;
}

.ocm-toc-container a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* Pro-Tip Box */
.ocm-pro-tip-box {
    background: #fffaf0; /* Light Warm Yellow */
    border-right: 4px solid #ed8936; /* Orange Accent */
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Quote Container */
.ocm-quote-box {
    margin: 40px 0;
    padding: 30px;
    background: #ffffff;
    border-right: 4px solid #3182ce;
    font-style: italic;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border-radius: 0 8px 8px 0;
}

.ocm-quote-box blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #2d3748;
}

.ocm-quote-box cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
    color: #718096;
}

/* Main Content Sections */
.ocm-main-section {
    margin-bottom: 50px;
}

.ocm-main-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a202c;
}

/* --- RTL ADJUSTMENTS FOR NEW COMPONENTS --- */
body.rtl .ocm-pro-tip-box,
[dir="rtl"] .ocm-pro-tip-box {
    border-right: 4px solid #ed8936;
    border-left: none;
    text-align: right;
}

body.rtl .ocm-quote-box,
[dir="rtl"] .ocm-quote-box {
    border-right: 4px solid #3182ce;
    border-left: none;
    text-align: right;
    border-radius: 0 8px 8px 0;
}