/* JeJe Forms Frontend Styles - Modern Minimal */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #FBF7E8;
    --gold-dark: #B8960C;
    --black-primary: #1A1A1A;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #D1D5DB;
    --border-light: #E5E7EB;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --error-color: #EF4444;
    --success-color: #10B981;
}

.jejeforms-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.jejeforms-form {
    background: var(--bg-white);
    width: 100%;
}

/* Form Fields Grid Layout */
.jejeforms-fields {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

/* Field Wrapper */
.jejeforms-field {
    margin-bottom: 20px;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.jejeforms-field.col-half {
    width: 50%;
}

.jejeforms-field.col-third {
    width: 33.333%;
}

.jejeforms-field.hidden {
    display: none !important;
}

/* Labels - Clean Style like Image 5 */
.jejeforms-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.jejeforms-label .required {
    color: var(--error-color);
    margin-left: 2px;
}

/* Inputs - Clean style with border */
.jejeforms-input,
.jejeforms-textarea,
.jejeforms-select,
.jejeforms-file {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    color: var(--text-dark);
}

.jejeforms-input:hover,
.jejeforms-textarea:hover,
.jejeforms-select:hover {
    border-color: #d1d5db;
}

.jejeforms-input:focus,
.jejeforms-textarea:focus,
.jejeforms-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.jejeforms-input::placeholder,
.jejeforms-textarea::placeholder {
    color: var(--text-light);
}

.jejeforms-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Select/Dropdown - Light background with border */
.jejeforms-select,
select.jejeforms-select {
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #f3f4f652 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 14px !important;
    padding-right: 40px;
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px !important;
}

.jejeforms-select:hover,
select.jejeforms-select:hover {
    border-color: #d1d5db !important;
}

.jejeforms-select:focus,
select.jejeforms-select:focus {
    border-color: var(--gold-primary) !important;
    background-color: var(--bg-white) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

/* Radio & Checkbox - Inline horizontal style */
.jejeforms-radio-group,
.jejeforms-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.jejeforms-radio-label,
.jejeforms-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    padding: 0;
    background: none;
    border: none;
}

.jejeforms-radio-label:hover,
.jejeforms-checkbox-label:hover {
    color: var(--black-primary);
}

.jejeforms-radio-label input,
.jejeforms-checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    margin: 0;
}

/* Name Fields */
.jejeforms-name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Address Fields */
.jejeforms-address-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jejeforms-address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* File Input */
.jejeforms-file {
    padding: 15px;
    border: 1px dashed var(--border-color) !important;
    background: #F9FAFB !important;
    text-align: center;
    cursor: pointer;
}

.jejeforms-file:hover {
    border-color: var(--gold-primary) !important;
    background: var(--gold-light) !important;
}

/* Section Break - Clean minimal style */
.jejeforms-field-section {
    width: 100% !important;
    padding: 0 8px !important;
}

.jejeforms-section {
    padding: 24px 0 8px;
    margin-bottom: 8px;
    margin-top: 8px;
    width: 100%;
}

.jejeforms-section:first-child {
    padding-top: 0;
    margin-top: 0;
}

.jejeforms-section-title {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-white);
    padding: 10px 16px;
    background: var(--black-primary);
    display: inline-block;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jejeforms-section-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--gold-primary);
}

.jejeforms-section-desc p {
    margin: 0 0 6px;
}

.jejeforms-section-desc p:last-child {
    margin-bottom: 0;
}

.jejeforms-section-desc h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 10px 0 6px;
}

.jejeforms-section-desc strong {
    color: var(--text-dark);
}

.jejeforms-section-desc del {
    color: var(--text-light);
}

.jejeforms-section-desc ul, 
.jejeforms-section-desc ol {
    margin: 6px 0;
    padding-left: 18px;
}

.jejeforms-section-desc img {
    max-width: 150px;
    height: auto;
    margin: 8px 0;
}

/* Payment Field - Light theme, horizontal layout */
.jejeforms-field-payment {
    width: 100% !important;
}

.jejeforms-payment-field {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 0;
}

/* Select Plan - 3 columns on desktop */
.jejeforms-payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.jejeforms-payment-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.jejeforms-payment-option:hover {
    border-color: var(--gold-primary);
    background: var(--gold-light);
}

.jejeforms-payment-option:has(input:checked) {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.jejeforms-payment-option:has(input:checked) .jejeforms-payment-label,
.jejeforms-payment-option:has(input:checked) .jejeforms-payment-amount {
    color: var(--black-primary);
}

.jejeforms-payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-dark);
    flex-shrink: 0;
}

.jejeforms-payment-option-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.jejeforms-payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.jejeforms-plan-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.3;
}

.jejeforms-price-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jejeforms-actual-price {
    color: var(--text-light);
    font-size: 14px;
}

.jejeforms-actual-price del {
    text-decoration: line-through;
}

.jejeforms-offer-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jejeforms-discounted-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-dark);
}

.jejeforms-payment-option:has(input:checked) .jejeforms-plan-name,
.jejeforms-payment-option:has(input:checked) .jejeforms-actual-price,
.jejeforms-payment-option:has(input:checked) .jejeforms-offer-label,
.jejeforms-payment-option:has(input:checked) .jejeforms-discounted-price {
    color: var(--black-primary);
}

.jejeforms-payment-option.selected .jejeforms-discounted-price {
    color: var(--black-primary);
}

.jejeforms-payment-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.5;
}

.jejeforms-payment-label del {
    color: var(--text-light);
    margin-right: 4px;
}

.jejeforms-payment-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
}

.jejeforms-payment-amount-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-dark);
    text-align: center;
    padding: 16px;
}

/* Help Text */
.jejeforms-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6B7280;
}

/* Submit Button - Golden Gradient with White Text */
.jejeforms-submit-wrapper {
    margin-top: 24px;
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.jejeforms-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: none;
}

.jejeforms-submit-btn:hover {
    background: linear-gradient(135deg, #B8960C 0%, #D4AF37 50%, #B8960C 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.jejeforms-submit-btn:active {
    transform: scale(0.98);
}

.jejeforms-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jejeforms-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.jejeforms-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 15px;
}

.jejeforms-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.jejeforms-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* PayU Payment Form */
#jejeforms-payu-form {
    text-align: center;
    padding: 32px;
    background: var(--black-primary);
    border-radius: 8px;
}

.jejeforms-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--black-primary);
    background: var(--gold-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jejeforms-pay-btn:hover {
    background: var(--gold-dark);
}

/* Validation States */
.jejeforms-field.error .jejeforms-input,
.jejeforms-field.error .jejeforms-textarea,
.jejeforms-field.error .jejeforms-select {
    border-color: #EF4444;
}

.jejeforms-field.error .jejeforms-label {
    color: #EF4444;
}

.jejeforms-error-message {
    color: #EF4444;
    font-size: 13px;
    margin-top: 5px;
}

/* Payment Method Selection - Light theme, horizontal layout */
.jejeforms-field-payment-method {
    width: 100% !important;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 0;
    margin-top: 16px;
}

.jejeforms-field-payment-method .jejeforms-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: block;
}

.jejeforms-field-payment-method .jejeforms-label .required {
    color: var(--error-color);
}

/* Payment Method - 2 columns on desktop */
.jejeforms-field-payment-method .jejeforms-radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.jejeforms-field-payment-method .jejeforms-radio-label {
    background: var(--bg-light);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jejeforms-field-payment-method .jejeforms-radio-label:hover {
    border-color: var(--gold-primary);
    background: var(--gold-light);
}

.jejeforms-field-payment-method .jejeforms-radio-label:has(input:checked) {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
}

.jejeforms-field-payment-method .jejeforms-radio-label:has(input:checked) .payment-method-text strong,
.jejeforms-field-payment-method .jejeforms-radio-label:has(input:checked) .payment-method-text small {
    color: var(--black-primary);
}

.jejeforms-field-payment-method input[type="radio"] {
    accent-color: var(--gold-dark);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.jejeforms-field-payment-method .payment-method-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jejeforms-field-payment-method .payment-method-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.jejeforms-field-payment-method .payment-method-text small {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.jejeforms-field-payment-method .jejeforms-help {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jejeforms-container {
        padding: 10px;
    }
    
    .jejeforms-field.col-half,
    .jejeforms-field.col-third {
        width: 100%;
    }
    
    .jejeforms-name-fields,
    .jejeforms-address-row {
        grid-template-columns: 1fr;
    }
    
    .jejeforms-submit-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jejeforms-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .jejeforms-radio-group,
    .jejeforms-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile: Select Plan - 1 column (3 rows) */
    .jejeforms-payment-options {
        grid-template-columns: 1fr;
    }
    
    .jejeforms-payment-option {
        flex-direction: row;
        text-align: left;
        padding: 14px 16px;
        min-height: auto;
    }
    
    .jejeforms-payment-option input[type="radio"] {
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .jejeforms-payment-option-left {
        flex-direction: row;
        align-items: center;
        flex: 1;
    }
    
    .jejeforms-payment-label {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    /* Mobile: Payment Method - 1 column (2 rows) */
    .jejeforms-field-payment-method .jejeforms-radio-group {
        grid-template-columns: 1fr;
    }
    
    .jejeforms-field-payment-method .jejeforms-radio-label {
        padding: 14px 16px;
    }
}
