/* ROIS Public Design System */
:root {
    --rois-primary: #0f5257;
    --rois-primary-dark: #0d464a;
    --rois-accent: #c5a059;
    --rois-slate: #1e293b;
    --rois-bg-light: #f8fafc;
    --rois-border: #e2e8f0;
}

/* Homepage Hero */
.rois-hero {
    background: linear-gradient(135deg, var(--rois-primary) 0%, #062c2e 100%);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(15, 82, 87, 0.25);
}

.rois-hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff !important;
    line-height: 1.2;
}

.rois-hero p {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.rois-hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rois-btn-primary {
    background-color: var(--rois-accent);
    color: #ffffff !important;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.rois-btn-primary:hover {
    background-color: #b38e48;
    transform: translateY(-1px);
}

.rois-btn-secondary {
    background-color: transparent;
    color: #ffffff !important;
    border: 2px solid #ffffff;
    padding: 12px 26px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.rois-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Core Pillars Grid */
.rois-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.rois-pillar-card {
    background: #ffffff;
    border: 1px solid var(--rois-border);
    border-top: 4px solid var(--rois-primary);
    border-radius: 8px;
    padding: 28px 22px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
}

.rois-pillar-card h3 {
    color: var(--rois-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.rois-pillar-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Section */
.rois-cta-banner {
    background-color: var(--rois-bg-light);
    border: 2px dashed var(--rois-accent);
    border-radius: 10px;
    padding: 40px 25px;
    text-align: center;
    margin-bottom: 30px;
}

.rois-cta-banner h2 {
    color: var(--rois-primary);
    margin-top: 0;
    font-size: 26px;
}

.rois-cta-banner p {
    color: #475569;
    font-size: 16px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Gravity Forms & ROIS Form Overrides
   ========================================================================== */

/* Main Card Wrapper */
.gform_wrapper.gform-theme--no-framework,
.gform_wrapper,
.rois-form-container {
    max-width: 800px !important;
    margin: 40px auto !important;
    padding: 40px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Form Title & Section Headers */
.gform_wrapper .gform_heading .gform_title,
.rois-form-container h2 {
    color: #0f5257 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.gform_wrapper .gsection_title,
.rois-form-section-title {
    color: #0f5257 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-top: 32px !important;
    margin-bottom: 20px !important;
}

/* Field Labels & Sub-labels */
.gform_wrapper .gfield_label,
.rois-form-container label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
}

.gform_wrapper .gfield_required {
    color: #dc2626 !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
}

.gform_wrapper .gfield_sub_label {
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 4px !important;
}

/* Inputs, Selects & Textareas */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select,
.gform_wrapper textarea,
.rois-form-container input[type="text"],
.rois-form-container input[type="email"],
.rois-form-container input[type="tel"],
.rois-form-container select,
.rois-form-container textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus,
.rois-form-container input:focus,
.rois-form-container select:focus,
.rois-form-container textarea:focus {
    outline: none !important;
    background-color: #ffffff !important;
    border-color: #0f5257 !important;
    box-shadow: 0 0 0 3px rgba(15, 82, 87, 0.15) !important;
}

/* Fix Input Rows & Field Spacing */
.gform_wrapper .gfield {
    margin-bottom: 22px !important;
}

.gform_wrapper .gfield_sub_label_below {
    margin-top: 6px !important;
}

/* Submit Button */
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_button,
.rois-form-container input[type="submit"] {
    background-color: #0f5257 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 12px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 20px !important;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_button:hover,
.rois-form-container input[type="submit"]:hover {
    background-color: #0b3c40 !important;
    transform: translateY(-1px) !important;
}