/*
 * Table of Contents
 * 1. General Styling
 * 2. Header Image
 * 3. Card Styling
 * 4. Form Styling
 * 5. Prefilled Information
 * 6. Field Layout
 * 7. Signature Section
 * 8. Buttons & Messages
 * 9. Information Section
 * 10. Responsive Adjustments
 * 11. Slider & Amount Inputs
 * 12. Small Mobile Devices
 */
/* === General Styling === */
/* General styling */
.sepafy-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.5;
}

/* === Header Image === */
/* Header image styling */
.sepafy-header-image {
    margin-bottom: 15px;
    text-align: center;
}

.sepafy-header-image img {
    max-width: 100%;
    height: auto;
}

/* === Card Styling === */
/* Card styling */
.sepafy-card {
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sepafy-green-card {
    border: 1px solid #4CAF50;
    background-color: #ffffff;
}

.sepafy-yellow-card {
    border: 2px solid #FFEB3B;
    background-color: #fffff0;
}

.sepafy-red-card {
    border: 2px solid #F44336;
    background-color: #fff0f0;
}

/* === Form Styling === */
/* Form styling */
.sepafy-form {
    max-width: 100%;
    position: relative;
    z-index: 10; /* Ensure form is above other elements */
}

.sepafy-form-section {
    margin-bottom: 25px;
    padding: 18px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 1px solid #eee;
}

/* === Prefilled Information === */
/* Prefilled information section styling */
.sepafy-prefilled-info {
    font-size: 0.8em;
    background-color: #f9f9f9;
    padding: 12px;
}

.sepafy-prefilled-columns {
    display: flex;
    flex-wrap: wrap;
    margin: -5px;
}

.sepafy-prefilled-column {
    flex: 1;
    min-width: 250px;
    padding: 5px;
}

/* === Field Layout === */
.sepafy-field-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -3px;
}

.sepafy-field-col {
    flex: 1;
    min-width: 120px;
    padding: 0 3px;
}

.sepafy-prefilled-info h3 {
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.sepafy-prefilled-info .sepafy-field {
    margin-bottom: 6px;
    display: block; /* Override the flex display for prefilled info */
}

.sepafy-prefilled-info .sepafy-field label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.85em;
    min-width: auto;
}

.sepafy-prefilled-info .sepafy-prefilled-value {
    display: block;
    padding: 3px 5px;
    font-size: 0.9em;
    line-height: 1.3;
}

/* Make creditor section smaller */
.sepafy-form-section:first-child {
    font-size: 0.9em;
}

.sepafy-form-section:first-child h3 {
    font-size: 14px;
}

.sepafy-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    font-size: 16px;
    color: #000000;
}

.sepafy-field {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sepafy-field label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    min-width: 100px;
}

.sepafy-field input[type="text"],
.sepafy-field input[type="email"],
.sepafy-field input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.sepafy-field input[type="text"]:focus,
.sepafy-field input[type="email"]:focus,
.sepafy-field input[type="number"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    z-index: 6;
}

.sepafy-prefilled-value {
    display: inline-block;
    padding: 8px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.9em;
    color: #000;
    flex: 1;
}


/* Field note styling for BIC explanation */
.sepafy-field-note {
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

/* BIC field styling */
.sepafy-bic-field {
    margin-top: 10px;
}

/* === Signature Section === */
/* Signature field */
.sepafy-signature-field {
    display: flex;
    margin-bottom: 15px;
    position: relative;
    z-index: 5;
}

.sepafy-signature-field label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    min-width: 100px;
}

.sepafy-signature-field > div {
    flex: 1;
}

/* Signature pad */
.sepafy-signature-container {
    position: relative;
    margin-bottom: 15px;
    border: 2px dashed #ccc;
    padding: 15px;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.sepafy-signature-container.sepafy-drag-highlight {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.sepafy-signature {
    width: 100%;
    height: 120px;
    border: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 8px;
    cursor: crosshair;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.sepafy-signature-instructions {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 5px 0;
    font-style: italic;
}

.sepafy-clear {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.sepafy-clear:hover {
    background-color: #e5e5e5;
}

/* === Buttons & Messages === */
/* Submit button */
.sepafy-form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.sepafy-form button[type="submit"]:hover {
    background-color: #45a049;
}

.sepafy-form-red button[type="submit"] {
    background-color: #F44336;
}

/* Success message */
.sepafy-success-message {
    padding: 15px;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    border-radius: 3px;
    margin-top: 20px;
}

/* Error message */
.sepafy-error {
    padding: 10px;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    border-radius: 3px;
    margin-top: 10px;
}

/* Download button */
.sepafy-download-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 3px;
    font-weight: bold;
    margin-top: 10px;
}

.sepafy-download-button:hover {
    background-color: #45a049;
    color: white;
    text-decoration: none;
}

/* === Information Section === */
/* Information section */
.sepafy-info-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #FFEB3B;
    background-color: #fffff8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sepafy-info-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #FFEB3B;
    color: #333;
}

/* Yellow card content */
.sepafy-yellow-content {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

/* === Responsive Adjustments === */
/* Responsive adjustments */
@media (max-width: 768px) {
    /* General form adjustments */
    .sepafy-card {
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
    }
    
    .sepafy-green-card {
        border: none;
    }
    
    .sepafy-container {
        max-width: 100%;
        padding: 0;
    }
    
    .sepafy-form-section {
        padding: 12px;
    }
    
    /* Field layout adjustments */
    .sepafy-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sepafy-field label {
        margin-bottom: 5px;
        min-width: auto;
        width: 100%;
    }
    
    .sepafy-field input[type="text"],
    .sepafy-field input[type="email"],
    .sepafy-field input[type="number"] {
        width: 100%;
    }
    
    
    /* Signature field adjustments */
    .sepafy-signature-field {
        flex-direction: column;
    }
    
    .sepafy-signature-field label {
        margin-bottom: 5px;
        min-width: auto;
        width: 100%;
    }
    
    .sepafy-signature {
        height: 100px;
    }
    
    .sepafy-signature-container {
        padding: 10px;
        border-width: 1px;
    }
    
    /* Add a hint for mobile users */
    .sepafy-signature-field > div::after {
        content: "Teken hier uw handtekening";
        display: block;
        text-align: center;
        font-size: 0.8em;
        color: #666;
        margin-top: 5px;
        font-style: italic;
    }
    
    /* Simple styling for signature */
    .sepafy-signature {
        background-color: white;
    }
    
    /* Donation amount buttons */
    .sepafy-field button.sepafy-amount-btn {
        margin-bottom: 5px;
        min-width: calc(33.33% - 10px);
        flex: 0 0 calc(33.33% - 10px);
        padding: 8px 5px;
        font-size: 0.9em;
    }
    
    /* Prefilled columns */
    .sepafy-prefilled-columns {
        flex-direction: column;
    }
    
    .sepafy-prefilled-column {
        width: 100%;
        min-width: 100%;
    }
    
    /* Field rows in prefilled info */
    .sepafy-field-row {
        flex-direction: column;
    }
    
    .sepafy-field-col {
        width: 100%;
        min-width: 100%;
        padding: 0;
        margin-bottom: 5px;
    }
    
    /* Tab links (if present) */
    .sepafy-tab-links {
        flex-direction: column;
    }
    
    .sepafy-tab-links a {
        border: 1px solid #ddd;
        margin-bottom: 5px;
    }
    
    .sepafy-tab-links li.active a {
        border-color: #ddd;
    }
}

/* Info text styling */
.sepafy-info-text {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.sepafy-info-text p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    font-style: italic;
}

.sepafy-info-text p:last-child {
    margin-bottom: 0;
}

/* === Slider & Amount Inputs === */
/* Amount input and slider styling */
.sepafy-amount-buttons {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 5;
}

.sepafy-slider-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 5;
}

.sepafy-slider-container input[type="range"] {
    width: 100%;
}

.sepafy-slider-labels {
    display: flex;
    justify-content: space-between;
}

.sepafy-amount-input-container {
    position: relative;
    flex: 1;
}

.sepafy-amount-currency {
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
}

.sepafy-amount-input-container input {
    padding-left: 25px;
    width: 100%;
}

/* === Small Mobile Devices === */
/* Small mobile devices */
@media (max-width: 480px) {
    .sepafy-container {
        padding: 0;
    }
    
    .sepafy-card {
        padding: 5px;
    }
    
    .sepafy-form-section {
        padding: 10px;
    }
    
    /* Make donation buttons stack in 2 columns on very small screens */
    .sepafy-field button.sepafy-amount-btn {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
    
    /* Smaller font for slider labels and info text */
    .sepafy-slider-labels {
        font-size: 0.7em;
    }
    
    .sepafy-info-text {
        padding: 10px;
    }
    
    .sepafy-info-text p {
        font-size: 0.85em;
    }
    
}
