/* 認領診所模態框樣式 - 精確匹配Figma設計 */
.claim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 13, 18, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.claim-modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.claim-modal-container {
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.claim-modal-content {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.claim-modal-overlay.show .claim-modal-content {
    transform: scale(1);
}

.claim-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: background-color 0.2s ease;
}

.claim-modal-close-btn:hover {
    background-color: #F3F4F6;
}

.claim-modal-title {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #181D27;
    text-align: left;
}

.claim-modal-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.429;
    color: #535862;
    margin-bottom: 20px;
    text-align: left;
}

.claim-form {
    text-align: left;
}

.claim-field-group {
    margin-bottom: 20px;
}

.claim-field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.429;
    margin-bottom: 6px;
    color: #414651;
    text-align: left;
}

.claim-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    padding: 10px 14px;
    gap: 8px;
}

.claim-input-wrapper:focus-within {
    border-color: #B89B5E;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), 0 0 0 3px rgba(174, 134, 45, 0.1);
}

.claim-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A4A7AE;
    flex-shrink: 0;
}

.claim-email-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #181D27;
    background: transparent;
}

.claim-email-input::placeholder {
    color: #717680;
}

.claim-button-group {
    display: flex;
    gap: 12px;
}

.claim-cancel-button {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #D5D7DA;
    border-radius: 999px;
    background-color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #414651;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.claim-cancel-button:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.claim-submit-button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background-color: #B89B5E;
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.claim-submit-button:hover {
    background-color: #9A7528;
}

.claim-submit-button:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
}

/* 移動端樣式 */
@media (max-width: 768px) {
    .claim-modal-container {
        width: 85%;
        max-width: 400px;
    }

    .claim-modal-content {
        padding: 20px;
    }

    .claim-button-group {
        flex-direction: column;
        gap: 12px;
    }

    .claim-cancel-button,
    .claim-submit-button {
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
    }
}