.cdf-wrapper {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}
.cdf-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    padding: 35px 30px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}
.cdf-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.cdf-card-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}
.cdf-amount-display {
    position: relative;
    margin-bottom: 15px;
}
.cdf-currency {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
}
.cdf-amount-display input {
    width: 100%;
    padding: 15px 20px 15px 45px;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    text-align: right;
    box-sizing: border-box;
    transition: 0.2s;
}
.cdf-amount-display input:focus {
    border-color: #333;
    outline: none;
}
.cdf-amount-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.cdf-pill {
    flex: 1;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}
.cdf-pill.active {
    background: #fbf1f3; /* Matches the soft pink */
    border-color: #fbf1f3;
    color: #1a1a1a;
}
.cdf-recurring-wrapper {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eaeaea;
    padding: 12px 15px;
    border-radius: 8px;
}
.cdf-recurring-wrapper select {
    border: none;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
}
.cdf-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.cdf-input-rounded {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    box-sizing: border-box;
}
.cdf-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.cdf-field-label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}
.cdf-payment-option {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.cdf-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    cursor: pointer;
    background: #fafafa;
    font-size: 14px;
}
.cdf-payment-details {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}
.cdf-subheading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 15px 0;
}
.cdf-stripe-container {
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #fff;
}
.cdf-terms {
    font-size: 12px;
    color: #555;
}
.cdf-summary-card {
    background: #f7f9fc; /* Soft blue background */
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
}
.cdf-summary-header {
    font-size: 12px;
    font-style: italic;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}
.cdf-summary-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.cdf-summary-box h4 {
    margin: 0 0 15px 0;
    font-size: 15px;
    font-weight: 600;
}
.cdf-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
    color: #555;
}
.cdf-summary-divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 15px 0;
}
.cdf-total-row {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 15px;
}
.cdf-submit-btn {
    width: 100%;
    background: #f7e6e8; /* Soft pink button */
    color: #1a1a1a;
    border: none;
    padding: 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}
.cdf-submit-btn:hover {
    background: #f0d8dc;
}
.cdf-secure-text {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
}
/* --- Responsive Mobile Styles --- */
@media screen and (max-width: 600px) {
    /* 1. Reduce padding to maximize screen real estate */
    .cdf-card, .cdf-summary-card {
        padding: 25px 20px;
    }
    
    /* 2. Stack side-by-side inputs (like First/Last Name) vertically */
    .cdf-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    /* 3. Allow amount buttons to wrap to a new row instead of squeezing */
    .cdf-amount-pills {
        flex-wrap: wrap;
    }
    
    .cdf-pill {
        flex: 1 1 30%; /* Forces 3 pills on the top row, 2 on the bottom */
        min-width: 80px; 
    }

    /* 4. Slightly scale down typography */
    .cdf-card-title {
        font-size: 16px;
    }
    
    .cdf-amount-display input {
        font-size: 18px;
    }
    
    .cdf-summary-row {
        font-size: 12px;
    }
}