/* Frontend Styles */
.iaf-frontend-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.iaf-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.iaf-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.iaf-card-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.iaf-card-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
}

.iaf-card-body {
    padding: 30px;
}

.iaf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iaf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.iaf-form-group {
    display: flex;
    flex-direction: column;
}

.iaf-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.iaf-form-group input {
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.iaf-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.iaf-info-box {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

.iaf-info-box strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.iaf-info-box ol {
    margin: 10px 0 0 20px;
    padding: 0;
}

.iaf-info-box ol li {
    margin: 5px 0;
}

.iaf-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.iaf-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.iaf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.iaf-btn-secondary {
    background: #6c757d;
    color: white;
}

.iaf-btn-secondary:hover {
    background: #5a6268;
}

.iaf-btn-whatsapp {
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.iaf-btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.iaf-message {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.iaf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.iaf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.iaf-success-box {
    text-align: center;
    padding: 20px 0;
}

.iaf-success-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.iaf-success-box h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.iaf-link-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.iaf-link-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
}

.iaf-whatsapp-box {
    margin: 20px 0;
}

/* Voucher Styles */
.iaf-voucher-container {
    padding: 30px;
}

.iaf-voucher-card {
    background: white;
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.iaf-voucher-header {
    margin-bottom: 25px;
}

.iaf-voucher-header h2 {
    margin: 0;
    color: #333;
    font-size: 26px;
}

.iaf-voucher-body {
    padding: 20px 0;
}

.iaf-voucher-amount {
    font-size: 72px;
    font-weight: 900;
    color: #667eea;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.iaf-voucher-code-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.iaf-voucher-code {
    font-size: 28px;
    font-weight: 700;
    font-family: monospace;
    background: #f0f4ff;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 25px;
    color: #333;
    letter-spacing: 2px;
}

.iaf-voucher-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.iaf-voucher-info p {
    margin: 10px 0;
    font-size: 15px;
    color: #333;
}

.iaf-voucher-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #e5e5e5;
}

.iaf-voucher-footer p {
    margin: 5px 0;
    color: #666;
}

.iaf-small {
    font-size: 13px;
    font-style: italic;
}

.iaf-error-box {
    text-align: center;
    padding: 40px;
}

.iaf-error-box h2 {
    color: #d63638;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .iaf-form-row {
        grid-template-columns: 1fr;
    }
    
    .iaf-card-header h2 {
        font-size: 24px;
    }
    
    .iaf-voucher-amount {
        font-size: 56px;
    }
    
    .iaf-voucher-code {
        font-size: 22px;
        padding: 12px 20px;
    }
    
    .iaf-link-box {
        flex-direction: column;
    }
}