/**
 * Claim Business Form Styles
 * @package Custom_Business_Directory
 * @version 13.5.0
 */

/* Page Layout */
.claim-business-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.claim-hero {
    background: #C62828;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.claim-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white !important;
}

.claim-hero p {
    font-size: 1.15rem;
    margin: 0;
    opacity: 0.95;
    color: white !important;
}

.claim-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Selected Business Display */
.selected-business {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 40px;
}

.selected-business p:first-child {
    color: #666;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.selected-business h2 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.selected-business .business-address {
    color: #666;
    margin: 0 0 15px 0;
}

.selected-business .change-business {
    margin: 0;
    font-size: 0.9rem;
}

.selected-business .change-business a {
    color: #C62828;
}

/* Business Search */
.business-search-section {
    margin-bottom: 40px;
}

.business-search-section h2 {
    color: #333;
    margin: 0 0 8px 0;
}

.business-search-section p {
    color: #666;
    margin: 0 0 20px 0;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #C62828;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-result-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item strong {
    display: block;
    color: #333;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Claim Form */
.claim-form {
    background: white;
}

.claim-form h2 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.4rem;
}

.claim-form > p {
    color: #666;
    margin: 0 0 25px 0;
}

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

.form-group {
    margin-bottom: 20px;
}

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

.form-group .required {
    color: #C62828;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #C62828;
}

.form-group .field-hint {
    font-size: 0.85rem;
    color: #888;
    margin: 6px 0 0 0;
}

/* Code Input */
.code-input {
    font-size: 2rem !important;
    text-align: center;
    letter-spacing: 0.5em;
    font-family: monospace;
    max-width: 250px;
}

/* Verification Options */
.verification-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #ccc;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    accent-color: #C62828;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #333;
}

.radio-option:has(input:checked) {
    border-color: #C62828;
    background: #fff8f8;
}

.radio-label {
    display: flex;
    flex-direction: column;
}

.radio-label strong {
    color: #333;
    margin-bottom: 2px;
}

.radio-label span {
    font-size: 0.9rem;
    color: #666;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    accent-color: #C62828;
}

.checkbox-label a {
    color: #C62828;
}

/* Submit Button */
.claim-button {
    display: inline-block;
    background: #C62828;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 10px;
}

.claim-button:hover {
    background: #a02020;
}

.claim-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

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

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

/* Verification Result */
.verification-result {
    text-align: center;
    padding: 50px 30px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 40px;
}

.verification-result.success {
    background: #d4edda;
}

.verification-result.error {
    background: #f8d7da;
}

.verification-result .result-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.verification-result .result-icon.error-icon {
    color: #dc3545;
}

.verification-result h2 {
    color: #333;
    margin: 0 0 15px 0;
}

.verification-result p {
    color: #666;
    margin: 0 0 10px 0;
}

.verification-result .sub-message {
    font-size: 0.9rem;
    color: #888;
}

/* Verify Code Section */
.verify-code-section {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.verify-code-section h2 {
    color: #333;
    margin: 0 0 10px 0;
}

.verify-code-section > p {
    color: #666;
    margin: 0 0 30px 0;
}

.verify-code-section .claim-form {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

.resend-note {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
}

.resend-note a {
    color: #C62828;
}

/* Benefits Section */
.claim-benefits {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.claim-benefits h3 {
    color: #333;
    margin: 0 0 25px 0;
    text-align: center;
}

.claim-benefits .benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: #C62828;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.benefit-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Verified Badge (for display on listings) */
.verified-owner-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.verified-owner-badge::before {
    content: "\2713";
    font-weight: bold;
}

/* Claim Button (for single business pages) */
.claim-business-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.claim-business-btn:hover {
    background: #fff;
    border-color: #C62828;
    color: #C62828;
}

.claim-business-btn svg {
    width: 16px;
    height: 16px;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .claim-hero h1 {
        font-size: 1.9rem;
    }

    .claim-hero {
        padding: 35px 15px;
    }

    .claim-content {
        padding: 35px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .verification-result {
        padding: 35px 20px;
    }

    .verification-result .result-icon {
        font-size: 48px;
    }
}
