/**
 * LawDepot Affiliate Integration Styles
 * Version: 1.0.0
 * Matches Underground Landlord #AADDFF branding
 */

/* ==========================================================================
   Color Variables (Playing off #AADDFF)
   ========================================================================== */
:root {
    --ul-ld-primary: #AADDFF;         /* Light blue - main brand */
    --ul-ld-dark: #0a3d5f;            /* Dark blue - text/headings */
    --ul-ld-medium: #1a6da0;          /* Medium blue - buttons/links */
    --ul-ld-light-bg: #e8f4f8;        /* Very light blue - card backgrounds */
    --ul-ld-lighter-bg: #d4ecf5;      /* Light blue - gradients */
    --ul-ld-hover: #88ccff;           /* Darker blue - hover states */
    --ul-ld-partner: #f59e0b;         /* Orange - partner ribbon */
}

/* ==========================================================================
   SECTION 1: UL Services (Separate Container)
   ========================================================================== */
.ul-ld-ul-services-section {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ul-ld-light-bg) 100%);
    border: 3px solid var(--ul-ld-primary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(170, 221, 255, 0.3);
}

/* ==========================================================================
   SECTION 2: LawDepot Partner (Separate Container)
   ========================================================================== */
.ul-ld-partner-section {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Section Header */
.ul-ld-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.ul-ld-section-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ul-ld-dark);
    margin: 0 0 8px 0;
}

.ul-ld-section-header p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

/* ==========================================================================
   UL Services Grid (3 Cards Only - Compact)
   ========================================================================== */
.ul-ld-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ul-ld-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ul-ld-lighter-bg) 100%);
    border: 2px solid var(--ul-ld-primary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ul-ld-service-card:hover {
    border-color: var(--ul-ld-hover);
    box-shadow: 0 6px 24px rgba(170, 221, 255, 0.4);
    transform: translateY(-2px);
}

.ul-ld-service-card .ul-ld-card-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.ul-ld-service-card .ul-ld-card-content {
    text-align: center;
    flex-grow: 1;
}

.ul-ld-service-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ul-ld-dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ul-ld-service-card p {
    display: none; /* No descriptions */
}

/* ==========================================================================
   Partner Introduction Text
   ========================================================================== */
.ul-ld-partner-intro {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--ul-ld-medium);
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.ul-ld-partner-intro p {
    margin: 0;
}

.ul-ld-partner-intro strong {
    color: var(--ul-ld-dark);
    font-weight: 600;
}

/* ==========================================================================
   Disclosure Footer (Bottom of Partner Section)
   ========================================================================== */
.ul-ld-disclosure-footer {
    margin-top: 28px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
}

.ul-ld-disclosure-footer p {
    margin: 0;
}

.ul-ld-disclosure-footer strong {
    color: #92400e;
    font-weight: 600;
}

/* ==========================================================================
   State Selector
   ========================================================================== */
.ul-ld-state-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: white;
    border: 2px solid var(--ul-ld-primary);
    border-radius: 10px;
}

.ul-ld-state-selector label {
    font-weight: 600;
    color: var(--ul-ld-dark);
    font-size: 14px;
}

.ul-ld-state-dropdown {
    padding: 8px 16px;
    border: 2px solid var(--ul-ld-primary);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ul-ld-dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ul-ld-state-dropdown:hover {
    border-color: var(--ul-ld-hover);
}

.ul-ld-state-dropdown:focus {
    outline: none;
    border-color: var(--ul-ld-medium);
    box-shadow: 0 0 0 3px rgba(170, 221, 255, 0.2);
}

/* ==========================================================================
   Forms Grid
   ========================================================================== */
.ul-ld-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.ul-ld-form-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ul-ld-lighter-bg) 100%);
    border: 2px solid var(--ul-ld-primary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ul-ld-form-card:hover {
    border-color: var(--ul-ld-hover);
    box-shadow: 0 8px 32px rgba(170, 221, 255, 0.5);
    transform: translateY(-4px);
}

.ul-ld-form-card .ul-ld-card-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.ul-ld-form-card .ul-ld-card-content {
    text-align: center;
    flex-grow: 1;
    margin-bottom: 12px;
}

.ul-ld-form-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ul-ld-dark);
    margin: 0 0 8px 0;
}

.ul-ld-form-card p {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* ==========================================================================
   Partner Ribbon (Orange Diagonal)
   ========================================================================== */
.ul-ld-partner-ribbon {
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--ul-ld-partner);
    color: white;
    padding: 4px 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Badges
   ========================================================================== */
.ul-ld-card-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.ul-ld-badge-ul {
    background: var(--ul-ld-dark);
    color: white;
    border: none;
}

.ul-ld-badge-partner {
    background: white;
    color: var(--ul-ld-partner);
    border: 2px solid var(--ul-ld-partner);
}

/* State Badge */
.ul-ld-state-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--ul-ld-medium);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Price Display
   ========================================================================== */
.ul-ld-card-price {
    margin: 8px 0;
}

.ul-ld-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--ul-ld-dark);
}

/* ==========================================================================
   Browse All Card (Special Styling)
   ========================================================================== */
.ul-ld-browse-all-card {
    background: linear-gradient(135deg, var(--ul-ld-lighter-bg) 0%, var(--ul-ld-light-bg) 100%);
    border: 3px dashed var(--ul-ld-primary);
}

.ul-ld-browse-all-card:hover {
    border-style: solid;
    background: linear-gradient(135deg, var(--ul-ld-primary) 0%, var(--ul-ld-hover) 100%);
}

.ul-ld-browse-all-card:hover h4,
.ul-ld-browse-all-card:hover p {
    color: var(--ul-ld-dark);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablets */
@media (max-width: 768px) {
    .ul-ld-ul-services-section,
    .ul-ld-partner-section {
        padding: 24px 16px;
    }

    .ul-ld-section-header h3 {
        font-size: 24px;
    }

    .ul-ld-section-header p {
        font-size: 14px;
    }

    .ul-ld-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .ul-ld-forms-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .ul-ld-state-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ul-ld-state-dropdown {
        width: 100%;
    }

    .ul-ld-partner-intro {
        font-size: 14px;
        padding: 16px 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ul-ld-ul-services-section {
        margin-top: 24px;
        padding: 16px 12px;
    }

    .ul-ld-partner-section {
        margin-top: 24px;
        padding: 16px 12px;
    }

    .ul-ld-section-header h3 {
        font-size: 20px;
    }

    .ul-ld-services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ul-ld-service-card .ul-ld-card-icon {
        font-size: 36px;
    }

    .ul-ld-service-card h4 {
        font-size: 14px;
    }

    .ul-ld-forms-grid {
        grid-template-columns: 1fr;
    }

    .ul-ld-partner-intro {
        flex-direction: column;
        padding: 12px;
        font-size: 13px;
    }

    .ul-ld-disclosure-footer {
        padding: 12px;
        font-size: 12px;
    }

    .ul-ld-form-card .ul-ld-card-icon {
        font-size: 48px;
    }

    .ul-ld-form-card h4 {
        font-size: 16px;
    }

    .ul-ld-partner-ribbon {
        font-size: 10px;
        padding: 3px 36px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .ul-ld-ul-services-section,
    .ul-ld-partner-section {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .ul-ld-partner-ribbon {
        display: none;
    }

    .ul-ld-form-card:hover,
    .ul-ld-service-card:hover {
        transform: none;
        box-shadow: none;
    }
}
