/**
 * Public styles for Gift Code Protect plugin
 */

.giftcode-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.giftcode-field {
    margin-bottom: 20px;
}

.giftcode-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.giftcode-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.giftcode-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.giftcode-submit {
    text-align: center;
}

.giftcode-button {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.giftcode-button:hover {
    background: #005a87;
}

.giftcode-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.giftcode-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Protection message styles */
.giftcode-protection-message {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
}

/* Security - Honeypot field (additional hiding methods) */
.giftcode-honeypot,
input[name="website_url"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

/* Rate limiting message */
.giftcode-rate-limit {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading state */
.giftcode-button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Responsive design */
@media (max-width: 600px) {
    .giftcode-form {
        margin: 20px;
        padding: 20px;
    }
    
    .giftcode-protection-message {
        margin: 20px;
        padding: 30px 15px;
    }
}