/* FFSOFT Membership Styles - Compatible with all themes */
.ffsoft-form-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

/* Membership Cards */
.ffsoft-tabs-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .ffsoft-tabs-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.ffsoft-tab {
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.ffsoft-tab:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ffsoft-tab.ffsoft-active {
    border-color: #2271b1;
    background-color: #f0f8ff;
}

.ffsoft-tab .ffsoft-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.ffsoft-tab h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.ffsoft-tab .ffsoft-price {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 15px;
}

.ffsoft-tab p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.ffsoft-tab .ffsoft-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e3f2fd;
    color: #1565c0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Fee Note */
.ffsoft-fee-note {
    background-color: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 15px;
    margin-bottom: 30px;
    display: none;
}

.ffsoft-fee-note.ffsoft-visible {
    display: block;
}

.ffsoft-fee-note .ffsoft-note-content {
    display: flex;
    align-items: center;
}

.ffsoft-fee-note svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #ffb300;
}

.ffsoft-fee-note span {
    font-weight: 600;
    color: #5d4037;
}

.ffsoft-fee-note .ffsoft-fee-amount {
    font-weight: 700;
}

/* Forms */
.ffsoft-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.ffsoft-form.ffsoft-hidden {
    display: none;
}

.ffsoft-form-section {
    margin-bottom: 35px;
}

.ffsoft-form-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
}

.ffsoft-form-section h3 svg {
    width: 24px !important;
    height: 24px !important;
    margin-right: 10px;
    fill: #2271b1;
}

/* Form Grid */
.ffsoft-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .ffsoft-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Form Controls */
.ffsoft-form-control {
    margin-bottom: 20px;
}

.ffsoft-form-control label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ffsoft-form-control input[type="text"],
.ffsoft-form-control input[type="email"],
.ffsoft-form-control input[type="tel"],
.ffsoft-form-control input[type="url"],
.ffsoft-form-control select,
.ffsoft-form-control textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

.ffsoft-form-control input:focus,
.ffsoft-form-control select:focus,
.ffsoft-form-control textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.ffsoft-form-control textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload */
.ffsoft-file-upload {
    display: flex;
    align-items: center;
}

.ffsoft-file-input {
    display: none;
}

.ffsoft-file-label {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ffsoft-file-label:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.ffsoft-file-info {
    margin-left: 15px;
    font-size: 14px;
    color: #666;
}

/* Dynamic Rows */
.ffsoft-dynamic-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .ffsoft-dynamic-row {
        grid-template-columns: 1fr 1fr;
    }
}

.ffsoft-add-row {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-top: 10px;
}

.ffsoft-add-row:hover {
    color: #0d47a1;
}

.ffsoft-add-row svg {
    width: 18px !important;
    height: 18px !important;
    margin-right: 5px;
}

/* Buttons */
.ffsoft-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ffsoft-submit-btn:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(34, 113, 177, 0.3);
}

.ffsoft-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ffsoft-submit-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px;
}

/* Payment Info */
.ffsoft-payment-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.ffsoft-payment-info.ffsoft-hidden {
    display: none;
}

.ffsoft-payment-info h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.ffsoft-payment-info h3 svg {
    width: 28px !important;
    height: 28px !important;
    margin-right: 10px;
    fill: #2e7d32;
}

.ffsoft-payment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .ffsoft-payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ffsoft-payment-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ffsoft-payment-card .ffsoft-step-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.ffsoft-payment-card h4 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.ffsoft-payment-card p {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.ffsoft-payment-card strong {
    color: #333;
}

.ffsoft-payment-note {
    background-color: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 15px;
}

.ffsoft-payment-note .ffsoft-note-content {
    display: flex;
}

.ffsoft-payment-note svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px;
    flex-shrink: 0;
    fill: #ffb300;
}

.ffsoft-payment-note p {
    margin: 0;
    font-size: 14px;
    color: #5d4037;
    line-height: 1.5;
}

.ffsoft-payment-note strong {
    color: #5d4037;
}

/* Messages */
.ffsoft-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.ffsoft-message.ffsoft-hidden {
    display: none;
}

.ffsoft-message.ffsoft-success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.ffsoft-message.ffsoft-error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

/* Loading Spinner */
.ffsoft-spinner {
    animation: ffsoft-spin 1s linear infinite;
    width: 20px !important;
    height: 20px !important;
}

@keyframes ffsoft-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.ffsoft-error-field {
    border-color: #c62828 !important;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .ffsoft-form-container {
        padding: 15px;
    }
    
    .ffsoft-form {
        padding: 20px;
    }
    
    .ffsoft-tab,
    .ffsoft-payment-card {
        padding: 20px;
    }
    
    .ffsoft-submit-btn {
        width: 100%;
        padding: 16px;
    }
}

/* Print Styles */
@media print {
    .ffsoft-tab,
    .ffsoft-add-row,
    .ffsoft-submit-btn,
    .ffsoft-file-label {
        display: none !important;
    }
}