/**
 * Claim Button Styles
 *
 * Styles for the public claim button and modal.
 *
 * @package CXQ\Membership
 * @since 2.7.0
 */

/* Claim Button */
.cxq-claim-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.cxq-claim-button:hover,
.cxq-claim-button:focus {
    background: #135e96;
    color: #fff;
}

.cxq-claim-container {
    margin: 20px 0;
    padding: 20px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 8px;
    text-align: center;
}

.cxq-claim-container h3 {
    margin-top: 0;
    color: #2271b1;
}

/* Modal */
.cxq-claim-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.cxq-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cxq-modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cxq-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.cxq-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2271b1;
}

.cxq-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cxq-modal-close:hover,
.cxq-modal-close:focus {
    color: #333;
    background: #f0f0f0;
}

.cxq-modal-body {
    padding: 24px;
}

.cxq-claim-step {
    display: none;
}

.cxq-claim-step.active {
    display: block;
}

.cxq-claim-step p {
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.cxq-claim-step .cxq-place-name {
    font-weight: bold;
    color: #2271b1;
}

.cxq-claim-step label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.cxq-claim-step input[type="text"],
.cxq-claim-step input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.cxq-claim-step input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cxq-claim-step button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cxq-claim-step button[type="submit"]:hover:not(:disabled) {
    background: #135e96;
}

.cxq-claim-step button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cxq-verification-info {
    background: #e5f5fa;
    padding: 12px;
    border-left: 4px solid #00a0d2;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cxq-verification-info p {
    margin: 0;
    font-size: 14px;
}

.cxq-email-hint {
    margin-top: 8px !important;
    color: #646970;
}

.cxq-email-hint .cxq-obscured-email {
    color: #2271b1;
    font-family: monospace;
}

/* Body class when modal is open */
body.cxq-modal-open {
    overflow: hidden;
}

/* Manual Claim Form */
.cxq-notice-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #e7f5fe;
    border-left: 4px solid #2271b1;
    margin-bottom: 20px;
}

.cxq-notice-info .dashicons {
    flex-shrink: 0;
    color: #2271b1;
    margin-top: 2px;
}

.cxq-form-field {
    margin-bottom: 16px;
}

.cxq-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d2327;
}

.cxq-form-field .required {
    color: #d63638;
}

.cxq-form-field input[type="text"],
.cxq-form-field input[type="email"],
.cxq-form-field input[type="tel"],
.cxq-form-field select,
.cxq-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.cxq-form-field input:focus,
.cxq-form-field select:focus,
.cxq-form-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.cxq-form-field .description {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #646970;
}

.cxq-success-message {
    text-align: center;
    padding: 20px 0;
}

.cxq-success-message .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #00a32a;
    margin-bottom: 12px;
}

.cxq-success-message h3 {
    margin: 12px 0;
    color: #00a32a;
}

.cxq-success-message p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .cxq-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .cxq-modal-body {
        padding: 16px;
    }

    .cxq-modal-header {
        padding: 16px;
    }
}
