/* Public form styles for Competition Automation Plugin */

.cap-submission-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cap-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.cap-form-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.cap-form-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.cap-form-group {
    margin-bottom: 25px;
}

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

.cap-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cap-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cap-form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.cap-pricing-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
}

.cap-price {
    display: flex;
    align-items: baseline;
}

.cap-currency {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-right: 2px;
}

.cap-amount {
    font-size: 42px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1;
}

.cap-price-details {
    text-align: right;
}

.cap-price-details p {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.cap-price-details small {
    color: #666;
    font-size: 13px;
}

.cap-submit-btn, .cap-payment-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cap-submit-btn:hover, .cap-payment-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.cap-submit-btn:disabled, .cap-payment-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cap-payment-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.cap-payment-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

#card-element {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    margin: 20px 0;
    background: #fff;
    transition: border-color 0.3s ease;
}

#card-element:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#card-errors {
    color: #dc3545;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
}

.cap-success {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.cap-success h3 {
    margin-top: 0;
    color: #155724;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cap-success p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}

/* Loading animation */
.cap-btn-loading {
    display: inline-flex;
    align-items: center;
}

.cap-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .cap-submission-form {
        margin: 20px;
        padding: 20px;
    }
    
    .cap-pricing-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cap-price-details {
        text-align: center;
    }
    
    .cap-amount {
        font-size: 36px;
    }
}