/* ======================================== */
/*  Prottyashi Donation Plugin Styles       */
/*  Matching PDF Design                     */
/* ======================================== */

:root {
    --pd-green: #1b5e20;
    --pd-green-light: #2e7d32;
    --pd-green-bg: #e8f5e9;
    --pd-dark: #1a1a2e;
    --pd-text: #333333;
    --pd-text-light: #666666;
    --pd-white: #ffffff;
    --pd-border: #e0e0e0;
    --pd-shadow: 0 8px 32px rgba(0,0,0,0.12);
    --pd-radius: 12px;
    --pd-font: 'Helvetica', Arial, sans-serif;
}

/* ===== RESET & BASE ===== */
.pd-donation-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pd-donation-wrapper {
    font-family: var(--pd-font);
    color: var(--pd-text);
    line-height: 1.6;
    background: #f9f9f9;
}

.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pd-narrow-container {
    max-width: 900px;
}

/* ===== HERO SECTION ===== */
.pd-hero-section {
    position: relative;
    min-height: 600px;
    background: #e0e0e0 no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    overflow: visible;
}

.pd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.pd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    color: var(--pd-white);
}

.pd-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    color: #fff;
}

.pd-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== FLOATING FORM CONTAINER ===== */
.pd-form-container {
    position: relative;
    z-index: 10;
    background: var(--pd-white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0;
    width: 480px;
    max-width: 100%;
    overflow: hidden;
}

/* ===== PROGRESS BAR ===== */
.pd-progress-container {
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.pd-progress-bar {
    height: 100%;
    background-color: var(--pd-green);
    transition: width 0.4s ease;
}

/* ===== STEP PANELS ===== */
.pd-step {
    display: none;
    animation: pdFadeIn 0.4s ease;
}

.pd-step.active {
    display: block;
}

@keyframes pdFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pd-step-header {
    background: #f8fafc !important;
    padding: 15px 24px !important;
    border-bottom: 3px solid #cbd5e1 !important;
    text-align: center !important;
}

.pd-step-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-transform: none !important;
}

.pd-step-body {
    padding: 20px 24px 24px !important;
}

/* ===== FORM FIELDS ===== */
.pd-field-group {
    margin-bottom: 10px;
}

.pd-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.pd-field-group input[type="text"],
.pd-field-group input[type="email"],
.pd-field-group input[type="number"],
.pd-field-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--pd-font);
    color: #0f172a;
    background: var(--pd-white);
    transition: border-color 0.3s;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 125, 60, 0.15);
    box-sizing: border-box;
}

.pd-field-group select {
    padding: 0 40px 0 14px;
    height: 42px;
    line-height: 40px;
}

.pd-step-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.pd-step-actions .pd-btn {
    flex: 1;
    margin: 0;
}

.pd-donation-wrapper .pd-btn.pd-btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.pd-donation-wrapper .pd-btn.pd-btn-secondary:hover {
    background: #e2e8f0 !important;
}

/* ===== CUSTOM SELECT UI ===== */
.pd-dropdown-wrapper {
    position: relative;
    user-select: none;
}

.pd-dropdown-wrapper .select-hidden {
    display: none !important;
    visibility: hidden;
    padding-right: 10px;
}

.pd-select-styled {
    position: relative;
    padding: 10px 40px 10px 14px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-select-styled:hover, .pd-select-styled.active {
    background-color: #fff;
    border-color: var(--pd-primary);
}

.pd-select-styled::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    margin-top: -3px;
    border: 6px solid transparent;
    border-top-color: #64748b;
    transition: all 0.2s ease;
}

.pd-select-styled.active::after {
    margin-top: -9px;
    border-top-color: transparent;
    border-bottom-color: var(--pd-primary);
}

.pd-select-options {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    margin: 8px 0 0 0;
    padding: 0;
    list-style: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    max-height: 250px;
    overflow-y: auto;
}

.pd-select-options li {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pd-select-search {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.pd-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.pd-select-search input:focus {
    border-color: var(--pd-green);
}

.pd-select-options li:last-child {
    border-bottom: none;
}

.pd-select-options li:hover {
    background-color: #f0fdf4;
}

.pd-opt-title {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.pd-opt-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

.pd-field-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding: 0 40px 0 16px;
    color: #64748b;
    box-sizing: border-box;
    height: 46px !important;
    line-height: 44px !important;
    font-weight: bold;
}

.pd-field-group select option {
    color: #0f172a;
    font-weight: bold;
}

.pd-field-group input:focus,
.pd-field-group select:focus {
    border-color: var(--pd-green);
}

.pd-field-row {
    display: flex;
    gap: 12px;
}

.pd-half {
    flex: 1;
}

/* ===== FREQUENCY TOGGLE ===== */
.pd-donation-wrapper .pd-frequency-toggle {
    display: flex !important;
    gap: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid var(--pd-green) !important;
}

.pd-donation-wrapper .pd-frequency-toggle .pd-freq-btn {
    flex: 1 !important;
    padding: 10px 0 !important;
    border: none !important;
    background: var(--pd-white) !important;
    font-family: var(--pd-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pd-donation-wrapper .pd-frequency-toggle .pd-freq-btn.active {
    background: var(--pd-green) !important;
    color: var(--pd-white) !important;
}

/* ===== AMOUNT BUTTONS ===== */
.pd-donation-wrapper .pd-amount-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.pd-donation-wrapper .pd-amount-buttons .pd-amount-btn {
    padding: 10px 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    background: var(--pd-white) !important;
    font-family: var(--pd-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.pd-donation-wrapper .pd-amount-buttons .pd-amount-btn:hover {
    border-color: var(--pd-green) !important;
    color: var(--pd-green) !important;
    background: var(--pd-white) !important;
}

.pd-donation-wrapper .pd-amount-buttons .pd-amount-btn.active {
    background: var(--pd-green) !important;
    color: var(--pd-white) !important;
    border-color: var(--pd-green) !important;
}

.pd-donation-wrapper .pd-amount-buttons .pd-custom-btn {
    grid-column: 1 / -1 !important;
}

.pd-custom-amount-field {
    margin-top: 8px !important;
}

.pd-custom-amount-field input {
    border-color: #cbd5e1 !important;
    text-align: center !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.pd-custom-amount-field input::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* ===== BUTTONS ===== */
.pd-donation-wrapper .pd-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: var(--pd-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    background: var(--pd-green) !important;
    color: var(--pd-white) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
}

.pd-donation-wrapper .pd-form-container .pd-btn {
    width: 100% !important;
}

.pd-donation-wrapper .pd-btn:hover {
    background: var(--pd-green-light) !important;
    color: var(--pd-white) !important;
}

.pd-ssl-badge-small {
    text-align: center !important;
    font-size: 11px !important;
    color: #0f172a !important;
    margin-top: 16px !important;
    font-weight: 600 !important;
}

.pd-ssl-badge-small .pd-lock-icon {
    color: var(--pd-green) !important;
    font-size: 13px !important;
    margin-right: 4px !important;
}

/* ===== TEXT SECTIONS (Why Donate & Compassion) ===== */
.pd-why-donate-section, .pd-compassion-section {
    padding: 60px 0 40px;
    background: #f9f9f9;
}

.pd-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #107d3c !important;
    margin-bottom: 30px;
}

.pd-text-content {
    font-size: 18px;
    color: var(--pd-text-light);
    line-height: 1.8;
}

.pd-text-content h1, 
.pd-text-content h2, 
.pd-text-content h3, 
.pd-text-content h4, 
.pd-text-content h5, 
.pd-text-content h6, 
.pd-text-content strong, 
.pd-text-content b {
    color: var(--pd-green) !important;
}

.pd-text-content p {
    margin-bottom: 16px;
}

.pd-text-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.pd-text-content li {
    margin-bottom: 8px;
}

.pd-text-content strong {
    color: var(--pd-text);
}

/* ===== BANNER SECTION ===== */
.pd-banner-section {
    background: #111;
    padding: 30px 0;
}

.pd-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.pd-banner-inner p {
    color: var(--pd-white);
    font-size: 16px;
    max-width: 800px;
    line-height: 1.6;
}

.pd-btn-banner {
    background: var(--pd-green);
    color: var(--pd-white);
    white-space: nowrap;
    width: auto;
    padding: 12px 30px;
}

/* ===== TESTIMONIALS SECTION ===== */
.pd-testimonials-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.pd-testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pd-testimonial-card-simple {
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    padding: 30px;
    font-size: 18px;
    color: var(--pd-text-light);
    line-height: 1.8;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pd-testimonial-author-simple {
    margin-top: 25px;
    border-top: 2px dashed var(--pd-border);
    padding-top: 20px;
    font-size: 14px;
}

.pd-testimonial-author-simple strong {
    color: var(--pd-text);
}

.pd-slider-nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pd-slider-nav {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.pd-nav-arrow {
    font-size: 38px;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.pd-nav-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    transition: background 0.3s;
}

.pd-dot.active {
    background: #111;
}

/* ===== CAUSE CARDS SECTION ===== */
.pd-causes-section {
    padding: 20px 0 60px;
    background: #f9f9f9;
}

.pd-causes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pd-cause-card {
    background: var(--pd-green);
    color: var(--pd-white);
}

.pd-cause-card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.pd-cause-card-body {
    padding: 20px;
}

.pd-cause-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.pd-cause-card-body p {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 16px;
}

.pd-donation-wrapper .pd-btn.pd-btn-cause {
    background: transparent !important;
    color: var(--pd-white) !important;
    border: 1px solid var(--pd-white) !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.pd-donation-wrapper .pd-btn.pd-btn-cause:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--pd-white) !important;
}

/* ===== DISCLAIMER ===== */
.pd-disclaimer-section {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--pd-border);
}

.pd-disclaimer-section small {
    color: var(--pd-text-light);
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}


/* ===== SINGLE CAUSE PAGE ===== */
.pd-single-page {
    background: linear-gradient(180deg, #eef2f7 0%, #f7f9fa 50%, #fff 100%);
    padding-top: 125px;
    padding-bottom: 60px;
}

.pd-single-cause-container {
    display: block;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.pd-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin-top: 125px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-breadcrumb a {
    color: #107d3c;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.pd-breadcrumb a:hover {
    color: #0c5b2c;
}

.pd-breadcrumb a svg {
    stroke-width: 2px;
}

.pd-breadcrumb-sep {
    display: flex;
    align-items: center;
    color: #cbd5e1;
}

.pd-breadcrumb-current {
    font-weight: 600;
    color: #334155;
}

.pd-single-title {
    font-size: 34px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.pd-single-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: #107d3c; /* Hardcoded green color */
    border-radius: 2px;
}

.pd-single-main-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

.pd-single-split {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.pd-single-left {
    flex: 1 1 420px;
    max-width: 500px;
    padding: 30px;
}

.pd-single-right {
    flex: 1 1 50%;
    display: flex;
}

/* Make the form blend in better on single page */
.pd-single-left .pd-form-container {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    box-shadow: none;
    border-radius: 0;
    border: none;
    background: transparent;
}

.pd-single-content-full {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.pd-single-description {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.pd-single-description p {
    margin-bottom: 18px;
}

.pd-single-media-wrapper {
    background: #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pd-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.pd-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pd-image-container {
    width: 100%;
    height: 100%;
}

.pd-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-no-media {
    background: #f0f0f0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Locked dropdown styling */
.pd-locked-dropdown {
    display: none !important;
}

@media (max-width: 1024px) {
    .pd-hero-section {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px 340px;
        min-height: auto;
    }

    .pd-hero-content {
        text-align: center;
        margin-bottom: 30px;
    }

    .pd-form-container {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 480px !important;
        margin-top: 30px !important;
    }
}

@media (max-width: 991px) {
    .pd-single-split {
        flex-direction: column;
    }
    
    .pd-single-left,
    .pd-single-right {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .pd-single-cause-container {
        padding: 0 20px;
    }

    .pd-single-title {
        font-size: 26px;
    }

    .pd-single-content-full {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .pd-testimonials-slider,
    .pd-causes-grid {
        grid-template-columns: 1fr;
    }

    .pd-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .pd-field-row {
        flex-direction: column;
        gap: 15px;
    }

    .pd-donation-wrapper .pd-amount-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pd-step-body {
        padding: 20px 15px !important;
    }

    .pd-step-header {
        padding: 15px !important;
    }
    
    .pd-section-title {
        font-size: 24px;
    }
    
    .pd-single-title {
        font-size: 22px;
    }
    
    .pd-single-left, .pd-single-content-full {
        padding: 15px;
    }
    
    .pd-step-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .pd-breadcrumb {
        margin-top: 30px;
    }

    .pd-single-page {
        padding-top: 40px;
    }

    .pd-form-container {
        max-width: 100%;
        margin-top: 20px;
    }
    
    .pd-cause-slide, .pd-testimonial-slide {
        min-width: 100% !important;
    }

    .pd-single-cause-container {
        margin-bottom: 30px;
    }

    .pd-single-main-card {
        margin-bottom: 20px;
    }

    .pd-testimonials-section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .pd-donation-wrapper .pd-amount-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pd-single-page {
        padding-top: 20px;
    }

    .pd-breadcrumb {
        margin-top: 15px;
    }

    .pd-hero-title {
        font-size: 28px;
    }

    .pd-single-cause-container {
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .pd-single-main-card {
        margin-bottom: 10px;
    }

    .pd-testimonials-section {
        padding: 20px 0;
    }

    .pd-cause-card-body h4 {
        font-size: 14px;
    }

    .pd-testimonial-card-simple {
        font-size: 16px;
        padding: 20px;
    }
}
